edited by
20,702 views
50 50 votes

A linker is given object modules for a set of programs that were compiled separately. What information need not be included in an object module?

  1. Object code

  2. Relocation bits

  3. Names and locations of all external symbols defined in the object module

  4. Absolute addresses of internal symbols

1 Answer

Best answer
72 72 votes
  1. is trivially there is an object module.
     
  2. must be there if we need to have relocation capability.
     
  3. For linker to link external symbols (for example in C, to link an extern variable in one module to a global variable in another module), it must know the location of all external symbols. In C external symbols includes all global variables and function names.
     
  4. is no way needed.
Correct answer: D
edited by
Answer:
Position:
Show:

Related questions

15 15 votes
7 7 answers
10.8k
10.8k views
Kathleen asked Oct 8, 2014
10,776 views
What is the value of $X$ printed by the following program?program COMPUTE (input, output); var X:integer; procedure FIND (X:real); begin X:=sqrt(X); end; begin X:=2 FIND(...
54 54 votes
6 answers 6 answers
26.6k
26.6k views
Kathleen asked Oct 8, 2014
26,575 views
Consider a grammar with the following productions$S \rightarrow a \alpha b \mid b \alpha c \mid aB$$S \rightarrow \alpha S\mid b$$S \rightarrow \alpha b b\mid ab$$...
27 27 votes
5 5 answers
11.0k
11.0k views
Kathleen asked Oct 8, 2014
10,966 views
Translate the arithmetic expression $a^\ast -(b+c)$ into syntax tree.A grammar is said to have cycles if it is the case that $A \overset{+}{\Rightarrow} A$ Show that no g...
9 9 votes
4 answers 4 answers
5.2k
5.2k views
Kathleen asked Oct 8, 2014
5,217 views
Construct the $\text{LL(1)}$ table for the following grammar.$Expr \rightarrow \_Expr$$Expr \rightarrow (Expr)$$Expr \rightarrow Var\; ExprTail$$ExprTail \rightarrow \_Ex...