Compiler Phases, Linking & Loading


Answer & solution
Answer: True for the conventional two-pass assembler. (no official key was published)
1. Pass one assigns addresses and builds the symbol table. To advance the location counter correctly, it must recognize instructions and determine their lengths.
2. The machine opcode table supplies instruction classification and length information, so it is consulted before final code generation in pass two.
3. Using the table does not mean final object code or unresolved operand addresses must already be emitted during pass one.