GATE / CS ARCHIVE

GATE CSE 1992 / QUESTION 3(ii.c)

Assembly listing pass

Compiler Design · Compiler Phases, Linking & Loading · Full GATE CSE 1992 paper

GATE 1992, Q3(ii.c) Descriptive
Report issue

Compiler Phases, Linking & Loading

Question 3(ii.c), GATE 1992: In a conventional two-pass assembler, in which pass is the final listing printed?
Question 3(ii.c), GATE 1992: In a conventional two-pass assembler, in which pass is the final listing printed?
Question 3(ii.c), GATE 1992: In a conventional two-pass assembler, in which pass is the final listing printed?
Tap to enlarge
Answer & solution

Answer: Pass2 (no official key was published)

A useful final assembly listing combines source statements with assigned addresses and generated machine code, plus diagnostics. Since those final encodings are produced in pass2, the conventional listing is printed there as well. Pass1 may produce temporary listings or diagnostics, but that is not the standard final annotated listing meant in this matching task. The answer therefore follows the output artifact’s dependencies rather than assuming any printed text must wait until pass2 in every implementation.

Original paper, page 4