GATE / CS ARCHIVE

GATE CSE 1996 / QUESTION 2.17

Matching translation mechanisms

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

GATE 1996, Q2.17 2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Compiler Phases, Linking & Loading

Question 2.17, GATE 1996: Match activation record, location counter, reference counts and address relocation with subroutine call, assembler, garbage collection and linking loader.
Tap to enlarge
Your answer
Answer & solution

Answer: D: A–3,B–4,C–2,D–1 (no official key was published)

An activation record stores the state of a subroutine invocation, such as saved control information and local variables. An assembler’s location counter tracks the address assigned to successive statements. Reference counts can support garbage collection by tracking how many references target an object. Address relocation adjusts addresses when a linking loader places program units in memory. These associations give 3,4,2,1 in the listed order. Reference counting has cycle limitations, but it is still the relevant collection mechanism in this matching question.

Original paper, page 6