Absolute loading scheme: which traditional loader function is instead handled by the assembler (i.e., performed at assembly time rather than by the loader)?

Difficulty: Medium

Correct Answer: Relocation of address-sensitive parts

Explanation:


Introduction / Context:
Different loading schemes distribute responsibilities among assembler, linker, and loader. In an absolute loading scheme, the assembler emits code with fixed absolute addresses, changing the usual division of labor for relocation.


Given Data / Assumptions:

  • Absolute loader: places the program into memory without adjusting addresses.
  • Assembler knows target starting addresses via origin directives or fixed layout.
  • No late binding of external symbols or relocation at load time.


Concept / Approach:
Relocation is the process of adjusting address-sensitive instructions and data when the final load address is determined. In an absolute scheme, the assembler precomputes and fixes addresses; hence the loader does not relocate. The loader simply copies the image to memory and transfers control.


Step-by-Step Solution:

Recognize absolute output: object code already contains final addresses.Map loader duties: minimal—read into memory and start execution.Conclude: relocation duty shifts to the assembler phase.


Verification / Alternative check:
Examine object format: absence of relocation records indicates assembler-fixed addresses; the loader has no relocation patches to apply.


Why Other Options Are Wrong:

Allocation at load time: not characteristic of absolute loaders; addresses are predetermined.Linking: absolute scheme often assumes a single module or prelinked image.Loading: still a loader task—reading image into memory and starting execution.None of the above: incorrect since relocation is indeed done by the assembler here.


Common Pitfalls:
Confusing absolute with relocatable or dynamic loading; assuming all loaders must relocate regardless of scheme.


Final Answer:
Relocation of address-sensitive parts.

More Questions from Language Processors

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion