Tasks performed in 1st pass –
- Assign address to all statements (address resolution)
- Save the values
- Processing of assembler directives
- Table creation , Adding literals to literal table
- Allocate space for literals
- Compute total length of a program
Tasks performed in 2nd pass –
- Generate object oriented code
- Writing/prinitng assembly listing
- Generate code for all load and store instruction