As part of segmentation memory allocation strategy, which of the following…
2023
As part of segmentation memory allocation strategy, which of the following assigns segment numbers for various segments of a program like code segment and data segment?
- A.
Compiler
- B.
Assembler
- C.
Loader
- D.
Linker
Attempted by 112 students.
Show answer & explanation
Correct answer: C
In segmentation memory allocation, the Loader is responsible for loading segments into memory. During this process, it sets up the segment table and assigns segment numbers for various segments of a program like code and data segments. This allows the operating system to manage memory mapping at runtime.