A simple two-pass assembler does which of the following in the first pass?
A
It allocates space for the literals
B
Calculates total length of the program
C
Symbol table is built for the symbols and their value
D
All of the mentioned
Correct Answer: All of the mentioned
A two-pass assembler. Each pass scans the program, the first pass generates the symbol table and the second pass generates the machine code.