What is the primary role of the linker in system software?
2023
What is the primary role of the linker in system software?
- A.
Translates source code to machine code
- B.
Combines object files into a single executable
- C.
Allocates memory to processes
- D.
Converts machine code to binary
Attempted by 460 students.
Show answer & explanation
Correct answer: B
The correct answer is Option B: Combines object files into a single executable. A linker is a system program that takes one or more object files generated by a compiler or assembler and combines them into a single executable file, resolving external references and combining libraries in the process.