The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+18 votes

Choose the correct alternatives (more than one may be correct ) and write the corresponding letters only

A “link editor” is a program that:

  1. matches the parameters of the macro-definition with locations of the parameters of the macro call
  2. matches external names of one program with their location in other programs
  3. matches the parameters of subroutine definition with the location of parameters of subroutine call.
  4. acts as a link between text editor and the user
  5. acts as a link between compiler and the user program
asked in Compiler Design by Veteran (52k points)
edited by | 1.8k views

1 Answer

+24 votes
Best answer

Link editor or (linker ) performs 

  1. external symbol resolution 
  2. relocation.


Matches external names of one program with their location in other programs

answered by Active (3.4k points)
edited by
Even I think answer is b

Which is the correct one
why not e ?
@bikram sir

Option e is more specific . Please see it.

@hem chandra joshi  User program  jorney:-

Source program -> preprocessor ->compiler-> Assembler->Linker-> Loader -> Exectution 

So,you see why e is false.Please let me know for any corrections.

what does c option means here?
who will perform option c

Macro resolution is done during compiling phase "Lexical analysis"

Yes,  this is given in dragon book some languages that not supported macro substitution lexical analyzer do that task which is done by pre-processor program ; like macro resolutions , white space and comments  elimination etc.
But this slight confusing Why not option c) here, if it not then what it is and moreover where it will be done?

Please explain anyone... it's confusing...

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,536 questions
54,113 answers
71,026 users