Unit 3 PPT Linker and Loader
Unit 3 PPT Linker and Loader
Unit 3 PPT Linker and Loader
Syllabus:
Loaders: Loader Schemes
Compile and Go
General Loader Scheme
Absolute Loader Scheme, Subroutine Linkages
Relocation and linking concepts
Self-relocating programs, Relocating Loaders,
Direct Linking Loaders, Overlay Structure.
Loaders
A program that places programs into memory and prepares
them for execution
Functions of Loader:
Allocation
Linking
Relocation
Loading
Loaders Scheme or types of Loader
Disadvantages
Portion of memory is wasted
There is no production of .obj file
It cannot handle multiple source programs or multiple
programs written in different languages
The execution time will be more in this scheme as every
time program is assembled and then executed
Advantages:
The program need not be retranslated each time while running it
There is no wastage of memory, because assembler is not placed in
the memory
It is possible to write source program with multiple programs and
multiple languages
i. Allocation is done by either programmer or assembler