GATE / CS ARCHIVE

GATE CSE 1991 / QUESTION 3(ix)

Link-editor responsibility

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

GATE 1991, Q3(ix) 2 marks · MSQ
Not in GATE 2027 syllabusReport issue

Compiler Phases, Linking & Loading

Question 3(ix), GATE 1991: A link editor matches external names to definitions in other modules, macro arguments to parameters, subroutine parameters to arguments, or serves as an editor/compiler user interface?
Question 3(ix), GATE 1991: A link editor matches external names to definitions in other modules, macro arguments to parameters, subroutine parameters to arguments, or serves as an editor/compiler user interface?
Tap to enlarge
Select all that apply
Answer & solution

Answer: B: resolve external names across modules (no official key was published)

Separately compiled modules contain symbol definitions and unresolved references to symbols defined elsewhere. The linker combines modules, locates matching definitions, assigns final locations and adjusts references or relocation records. This is the external-name matching described by B. Macro-parameter substitution belongs to macro expansion, and runtime argument passing or compiler checking handles subroutine parameters. The tool’s name does not mean it is an interactive bridge to a text editor. Dynamic linking can defer some resolution, but the semantic task remains symbol binding across modules.

Original paper, page 4