The process of assigning load addresses to the various parts of the program…
2013
The process of assigning load addresses to the various parts of the program and adjusting the code and data in the program to reflect the assigned addresses is called _______.
- A.
Symbol resolution
- B.
Parsing
- C.
Assembly
- D.
Relocation
Attempted by 193 students.
Show answer & explanation
Correct answer: D
Answer: Relocation. Relocation is the process of assigning actual load addresses to the various parts of a program and modifying the program's code and data so that all address-dependent references use those assigned addresses.
Why this is correct: Relocation updates address-dependent instructions and data (using relocation entries) when a program is linked or loaded so the program runs at its assigned addresses.
Why the other choices are incorrect:
Symbol resolution finds and binds symbol names to addresses but does not perform the patching of code/data required after addresses are assigned.
Parsing analyzes source code structure and syntax; it is unrelated to assigning load addresses.
Assembly converts assembly language into machine code and may emit relocation information, but the final address assignment and adjustments are performed during relocation.