edited by
4,775 views
0 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

6 Answers

5 5 votes
I believe only the first statement is correct because the second one claims that the linker replaces absolute references in an object, which is incorrect; the linker always generates relocatable addresses.
edited by
2 2 votes
the linker produces absolute machine code,but here it says it replaces. So I is true only.Maybe
0 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

0 0 votes
answer:- (a)

reason: a linker is a computer software that combine 2 or more file generated by compiler into a single executable file.

so its function is to combine several object modules into a single load module.
0 0 votes

both statements are correct 

1st statement is easy, let's check 2nd statement 

The linker resolves dependencies between the object files and static libraries while the loader resolves dependencies between the executable and any shared library.

the function of a linker is to replace absolute references in an object module with symbolic references

here symbolic ref means the logical address, not a reference that actually points to a physical memory location 

That's why we call it a linker 

Answer:
Position:
Show:

Related questions

2 2 votes
8 answers 8 answers
6.8k
6.8k views
go_editor asked Mar 24, 2020
6,785 views
Consider the following statements related to compiler construction:Lexical Analysis is specified by context-free grammars and implemented by pushdown automata.Syntax Anal...
0 0 votes
3 answers 3 answers
3.6k
3.6k views
go_editor asked Mar 24, 2020
3,551 views
Consider a sequence $F_{00}$ defined as :$F_{00}\left ( 0 \right )= 1, F_{00}\left ( 1 \right )= 1\\$$F_{00}\left ( n \right )= \frac{10 * F_{00}\left ( n-1 \right )+100}...
0 0 votes
4 answers 4 answers
2.0k
2.0k views
go_editor asked Mar 24, 2020
2,004 views
Match the following :$\begin{array}{llll} & \textbf{List – I} & {} & \textbf{List – II} \\ \text{a.} & \text{Absurd} & \text{i.} & \text{Clearly impossible being contrar...
2 2 votes
3 3 answers
1.9k
1.9k views
go_editor asked Mar 24, 2020
1,940 views
The functions mapping $R$ into $R$ are defined as :$f\left(x \right)=x^{3} - 4x, g\left(x \right)=\frac{1}{x^{2}+1}$ and $h\left(x \right)=x^{4}.$Then find the value of t...