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:

Functions of a Loader

The major functions of a loader are:

  1. Allocation
  2. Linking
  3. Relocation
  4. Loading

1. Allocation

Allocation means assigning memory space to the program and its data.

The loader decides:

Example

If a program requires 20 KB memory, loader allocates suitable memory area before execution.