A simple two-pass assembler does which of the following in the first pass:
2016
A simple two-pass assembler does which of the following in the first pass:
- A.
Checks to see if the instruction are legal in the current assembly mode.
- B.
It allocates space for the literals.
- C.
It builds the symbol table for the symbols and their values.
- D.
All of these.
Attempted by 104 students.
Show answer & explanation
Correct answer: D
In the first pass, a two-pass assembler builds the symbol table, processes literals/storage allocation, and performs basic checks needed for assembly. Therefore all listed tasks are included.
A video solution is available for this question — log in and enroll to watch it.