GATE / CS ARCHIVE

GATE CSE 1994 / QUESTION 18(b)

External symbol resolution

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

GATE 1994, Q18(b) Descriptive
Report issue

Compiler Phases, Linking & Loading

Question 18(b), GATE 1994: State true or false with reason: A symbol declared external in assembly language is assigned an address outside the program by the assembler itself.
Question 18(b), GATE 1994: State true or false with reason: A symbol declared external in assembly language is assigned an address outside the program by the assembler itself.
Tap to enlarge
Answer & solution

Answer: False. (no official key was published)

1. External means the definition is supplied by another object module or library, not defined in this assembly unit.

2. The assembler records an unresolved external reference and the necessary relocation/linkage information.

3. The linker, or a loader performing dynamic resolution, combines definitions and assigns/resolves the final address. The assembler alone generally lacks the required placement and definition information.

Original paper, page 6