recategorized
2,717 views
0 votes
0 votes

Which of the following statement(s) regarding a linker software is/are true ?

  1. A function of a linker is to combine several object modules into a single load module.
  1. A function of a linker is to replace absolute references in an object module by symbolic references to locations in other modules.
  1. Only I

  2. Only II

  3. Both I and II

  4. Neither I nor II

recategorized

6 Answers

5 votes
5 votes
i think only first statement is correct ,becoz  in second it is saying that linker  replace absolute references in an object which is wrong linker always generate relocatable address adress
edited by
2 votes
2 votes
the linker produces absolute machine code,but here it says it replaces. So I is true only.Maybe
0 votes
0 votes

In computer science, a linker is a computer program that takes one or more object files generated by a compiler and combines them into one, executable program.

Computer programs are usually made up of multiple modules that span separate object files, each being a compiled computer program. The program as a whole refers to these separately compiled object files using symbols. The linker combines these separate files into a single, unified program, resolving the symbolic references as it goes along.

so only staement 1 is true

Answer:

Related questions

0 votes
0 votes
4 answers
3
go_editor asked Mar 24, 2020
992 views
Match the following :$\begin{array}{llll} & \textbf{List – I} & {} & \textbf{List – II} \\ \text{a.} & \text{Absurd} & \text{i.} & \text{Clearly impossible being con...