Explain the functions of a Loader. Enlist the loader schemes./Explain the process of loading and linking with neat diagram
Loader
A Loader is a system program that:
- accepts object programs,
- prepares them for execution,
- loads them into memory, and
- starts execution of the program.
Functions of a Loader
The major functions of a loader are:
- Allocation
- Linking
- Relocation
- Loading
1. Allocation
Allocation means assigning memory space to the program and its data.
The loader decides:
- where the program will be loaded,
- how much memory is required.
Example
If a program requires 20 KB memory, loader allocates suitable memory area before execution.