View previous topic :: View next topic
|
Author |
Message |
Sandeep More
New User
Joined: 05 May 2007 Posts: 2 Location: Mumbai
|
|
|
|
Hi All,
I got this query in one of my job interviews.
Without knowing the compile parms how can one decide whether a program is statically linked or dynamically linked He asked whether I can determine the linking type just by looking at the program
Please answer. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Welcome, go to search and enter static dynamic and click search. |
|
Back to top |
|
|
dchanem
New User
Joined: 03 Apr 2007 Posts: 1 Location: chennai
|
|
|
|
Static program is bigger in size than a dynamic linking one in the load library. |
|
Back to top |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
You can know it just by looking at the program...
Dynamic if call uses variable(s)
Statis if call uses literal.
hope this helps...
|
|
Back to top |
|
|
blueice
New User
Joined: 23 May 2007 Posts: 2 Location: CHENNAI
|
|
|
|
hi all,
IN CASE OF DYNAMIC CALL, PROGRAM-ID WILL BE(MUST BE) SAME FOR MAIN AS WELL AS SUB PROGRAM...USING THS WE CAN IDENTIFY THE TYPE OF CALL..APART FROM THIS IF MAIN AND SUB R A PART OF SAME LOAD MODULE THEN IN THIS CASE ITS STATIC CALL... |
|
Back to top |
|
|
|