What is the difference between static & dynamic call?
in the case of static call the mainprogram and subpgms r loaded into the mainmemory initially.in the case of dynamic call only the mainpgm is loaded first and the subpgm is loaded only when a call to it is made.so the memory utilization is good in dynamic call.
Total Answers and Comments: 5
Last Update: January 08, 2008 Asked by: manasa thomas
RE: What is the difference between static & dynamic ca...
You are right but you are missing the reason why this occurs. When you are compiling this program you set the dynamic versus static call setting. If the program is compiled statically the subprogram becomes a part of the load. Whereas if the program is compiled with the program dynamically then the subprogram will not be a part of main programs load. It only gets loaded into memory when the main program makes the call to it.
HI Buddy..... In case of STATIC CALL t load module of both t main prog and t sub prog wil b combined together.... in case of DYNAMIC CALL t load module of main and sub prog are both seperate. suppose that if u make any change in ur sub prog then in case of DYNAMIC CALL u nee not recompile your MAIN prog once again. only t sub prog needs to b recompiled...... wher as in case of STATIC CALL u need to recompile both t main and t sub prog Hope u undestood... reply back for any queries Regards AJAY