Saturday 13 April 2019

what is role of Linker in programming c

Linker



  • Linking resolves symbolic references between object programs. 
  • Linker makes object programs known to each other.
  • The features of a programming language influence the linking requirements of a program.
  •  In FORTRAN/COBOL,all program units are translated separately. 
  •  all subprogram calls and common variable references require it.



  •  PASCAL procedures are typically nested inside the main program. procedure references do not require it; they can be handled through relocation.References to built-in functions however require linking.



  • In C, files are translated separately. Thus, only function calls that cross file boundaries and references to global data require linking. it makes the addresses of programs known to each other so that transfer of control from one subprogram to another or a main program takes place during execution.

0 comments:

Post a Comment