Correct Answer - Option 4 : All of these
The correct answer is option 4
In a simple two-pass assembler,
Tasks performed in 1st pass are as follows
- Checks to see if the instructions are legal in the current assembly mode
- Assign the address to all statements (address resolution)
- Save the values
- Processing of assembler directives
- Table creation (symbol table), Adding literals to the literal table
- Allocate space for the literals
- Compute the total length of a program
Tasks performed in 2nd pass
- Generate object-oriented code.
- Writing/printing assembly listing.
- Generate code for all load and store instruction