COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is the linker?
A
It is always used before the program execution.
B
It is required to create the load module.
C
It is the same as the loader
D
None of the above
Explanation: 

Detailed explanation-1: -The linker is responsible for creating the load module, while the loader is responsible for loading the load module into memory and executing it. The linker and loader work together to ensure that the program runs correctly and efficiently. The linker takes object files produced by the compiler as input.

Detailed explanation-2: -S.No. A linker is an important utility program that takes the object files, produced by the assembler and compiler, and other code to join them into a single executable file. A loader is a vital component of an operating system that is accountable for loading programs and libraries.

Detailed explanation-3: -Answer: b. It is required to create the load module. Explanation: Linker is a program in the compiler which is required to create a load module.

There is 1 question to complete.