9618/12 May/June 2023 · Question 3(a) · 3 marks
A two-pass assembler translates a program. Match each action to the pass (first, second or both) in which it happens.
Points that gain marks
- Reads the source code one line at a time: both passes.
- Removes white space and adds labels to the symbol table: first pass.
- Generates the object code: second pass.
In this lab: Pass 1 here builds the symbol table; pass 2 writes the object code with an address in place of each label.