View previous topic :: View next topic
|
Author |
Message |
maverick05
New User
Joined: 14 Apr 2005 Posts: 54 Location: Earth
|
|
|
|
Hi,
How to find whether a module is called dynamically or statically from its load module.
I don't have the source with me. I want to know programs which are being called dynamically by this load module.
Thanks
Venkat |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
Quote: |
I want to know programs which are being called dynamically by this load module. |
Check the run time messages. |
|
Back to top |
|
|
maverick05
New User
Joined: 14 Apr 2005 Posts: 54 Location: Earth
|
|
|
|
Nope,i didn't find any static ,dynamic related messages |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
Run without DYNAM option. If No error, then Static Call. Or Dyamic Call. |
|
Back to top |
|
|
notonly4u
New User
Joined: 26 Apr 2005 Posts: 87 Location: Hyderabad
|
|
|
|
Dear maverick05,
If it is static call, The load module of the called program will also be stamped together with the calling program's Load Module. This means if we are making changes to the sub program we have to compile both the calling and called pgms.
Whereas in dynamic call the load modules will be seperate and if any change to the sub pgm, then only the subroutine needs recompilation since it is going to called dynamically and the load modules are separate.
Hope this gives yu some idea. If yu have any queries...please let me know.
Regards
Tanden |
|
Back to top |
|
|
nave
New User
Joined: 16 May 2005 Posts: 10 Location: bangalore,india
|
|
|
|
me too agree with the above answer,that is 'Run without DYNAM option. If No error, then Static Call. else Dyamic Call |
|
Back to top |
|
|
David P
Active User
Joined: 11 Apr 2005 Posts: 106 Location: Cincinnati Ohio
|
|
|
|
Hi,
Is there any DYNAM option while running, I believe its there while compiling the source. I am not sure about the DYNAMIC calls but the
statically called modules can be seen embeded in the load module of
calling program.
regards,
David. |
|
Back to top |
|
|
swaran_msc
New User
Joined: 19 May 2005 Posts: 5 Location: Bangalore
|
|
|
|
We could identify Call type using Compiler option Dynam or Nodynam.
Even If you specify Nodynam in Compiler Option it will be taken as Dynam only.
Corrections are Welcome... |
|
Back to top |
|
|
subhasis_50
Moderator
Joined: 09 Mar 2005 Posts: 363 Location: Earth
|
|
|
|
Hi,
The DYNAM or NODYNAM OPTIONS are getting used in the time of compilation time. Those options are not used in run time.
If you have the load module, open that member in INSYNC. In that you will found the name of the prog which are statically linked. The members which are statically linked present in the main load module. That is it is already loaded in the main memory during the time of execution.
For Dynamically load module, u can not see the name of the programs in the main load module. Those are taken into consideration during the execution time. That time those are loaded in the main memory.
For standalone prog NODYNAM and DYNAM have the same meaning. |
|
Back to top |
|
|
samchris
New User
Joined: 31 May 2005 Posts: 26 Location: pune
|
|
|
|
by checking the load module in the hewl.if it's static it contain some value & if it is dynamic it won't contain any value. |
|
Back to top |
|
|
|