GATE / CS ARCHIVE

GATE CSE 2001 / QUESTION 1.17

Assigning load addresses and adjusting references

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

GATE 2001, Q1.17 1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Compiler Phases, Linking & Loading

Question 1.17, GATE 2001: What is the process of assigning actual load addresses and adjusting program address references: assembly, parsing, relocation, or symbol resolution?
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step 1: Object code can contain address-dependent references expressed relative to an initially assumed location. Loading the program elsewhere requires assigning its actual locations.

Step 2: Address fields or relocation entries are adjusted to match those locations; this operation is relocation, C. Assembly translates symbolic instructions, parsing recognizes syntactic structure, and symbol resolution identifies which definition a name denotes. These can accompany linking/loading but are distinct tasks.

Original paper, page 3