Venkteshwar Institute Of Technology Indore

Saturday, October 16, 2010

Dynamic Loading

To obtain better memory space utilization, we can use dynamic loading. With the dynamic loading, a routine is not loaded until is it called. All routine are kept on a disk in a relocatable load format.
The main program is loaded into memory and executed. When a routine is needed to call another routine, the calling routine first checks to see whether the other routine has been loaded.
if not, then relocatable linking loader is called to load the desired routine into memory and to update the programs address table to reflect this changes.

Advantages:
I. Unused routine is never loaded
II. It does not need special support from O/S
III. O/S providing library routine to implement dynamic loading

No comments:

Post a Comment