Sociology, asked by chernetAsefa, 10 months ago

3. What is the role of linker in the compilation
process?
a) linker links the object code with the library
code
b) linker converts machine code into executab
machine code
c) linker generates an executable file
. d) all of the above​

Answers

Answered by 9110111968
1

Explanation:

b) linker converts machine code into executab

machine code

Answered by KailashHarjo
0

All three options are correct. Option(d) is the correct answer.

  • Object modules of a program are linked together into a single object file with the aid of a system program called a linker.
  • It carries out the linking process. Link editors and linkers are similar terms.
  • Putting various pieces of code and data into one file is a process known as linking.
  • A specific module is also linked into the system library by the linker.
  • It generates an executable file for the loader using input object modules from the assembler.

There are two types of linkers:

  • Static Linker: It takes place during the compilation of the source code. Static linking involves linking before execution. A fully linked object file that can be loaded and executed is produced from a set of localizable object files and control arguments.
  • Dynamic linking: During runtime, dynamic linking is carried out. By including the name of a shareable library in the executable image, this linking is accomplished. As multiple programs can share a single copy of the library, less memory is needed.

For more information on Linker, refer to these answers:

https://brainly.in/question/27865410

https://brainly.in/question/24692753

#SPJ3

Similar questions