Advantages and disadvantages of general loader scheme
Answers
Loader is a utility program that takes the object code as input prepares it for execution and loads the executable code into the memory. It initiates the execution process.
In the General Loader Scheme the source program is converted to object program by some translator or assembler. The loader receives these object modules and puts machine instruction and data in an executable form at their assigned memory. Some portion of the main memory is occupied by the loader.
Advantages
1. When source program is executed an object program gets generated. So there is no need to retranslate the program each time.
2. Instead of placing the assembler in the memory the loader occupies a portion of the memory. A loader is smaller than assembler so there is no wastage of memory.
3. The source program can be written with multiple programs and multiple languages.
Disadvantages
1. If the program is modified it has to be retranslated.
2. Some portion of the memory is occupied by the loader.