View previous topic :: View next topic
|
Author |
Message |
sandra
New User
Joined: 06 Apr 2005 Posts: 27
|
|
|
|
How does a programmer decides whether a static or a dynamic call should be used in any programs? |
|
Back to top |
|
|
Great Indian
New User
Joined: 05 Apr 2005 Posts: 9
|
|
|
|
You have to take a decesion based on size of called program(sub pgm)....
If called program size is small then go for static call because, In static call called program is link edited into calling program.
If called program size is big then go for dynamic call because, in dynamic call called program and calling program exists as a seperate load modules. |
|
Back to top |
|
|
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
i think it all depends upon the requirement..where performace in terms of speed or CPU time is more important it is better to go for static call, where as where performance is based upon the amount of memory used it is better to go for dynamic. |
|
Back to top |
|
|
sandra
New User
Joined: 06 Apr 2005 Posts: 27
|
|
|
|
Thanks a lot guys |
|
Back to top |
|
|
jeevanshivain
New User
Joined: 07 Apr 2005 Posts: 4
|
|
|
|
hey,
In static call called pgm is linkedited to mainmodule.but in case of dynamic it is not linkedited to the mainprogram.
suppose i have a mainprogram called A.it calling B.Bcalling c.if i get an error in the program B,
IN dynamic call it is enough to compile Program B.suppose if v go for static call it take high resourse utilization.
i hope now u understand
jeevan |
|
Back to top |
|
|
sandra
New User
Joined: 06 Apr 2005 Posts: 27
|
|
|
|
That was very informative jeevanshivain.Thanks for the same |
|
Back to top |
|
|
|