The ____ transfers the executable image of a C++ program from hard disk to…
2015
The ____ transfers the executable image of a C++ program from hard disk to main memory
- A.
Compiler
- B.
Linker
- C.
Debugger
- D.
Loader
Attempted by 217 students.
Show answer & explanation
Correct answer: D
Correct answer: Loader
Explanation: The loader is a component of the operating system responsible for transferring the executable image from the hard disk into main memory, preparing the program's runtime environment, and transferring control to the program's entry point.
Locate and read the executable file from secondary storage into memory.
Perform relocation or address fixups and load any required shared libraries.
Set up the runtime environment (stack, heap, program arguments, environment variables).
Transfer control to the program's entry point so execution can begin.