Operating System - HP-UX
1847614 Members
3718 Online
110265 Solutions
New Discussion

Dynamic Executables and Static files

 
Argiris
Occasional Contributor

Dynamic Executables and Static files

Hi, my name is Bill

I have a problem. Which is the difference between Dynamic Executables and Static files ?
and can you give an example of these ?
for example a mp3 is static file or dynamic executable ?

Please help


Thank you
2 REPLIES 2
Peter Godron
Honored Contributor

Re: Dynamic Executables and Static files

Hi,
the basic difference between static and dynamic is the location of code.
In a static executable all the code needed is within the executable, whereas a dynamic executable requires external libraries to run.

You may want to read:
http://phaseit.net/claird/comp.programming/linking.html
or
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.prftungd/doc/prftungd/when_dyn_linking_static_linking.htm

Examples would be standalone(static) applications or applications that require external libraries (windows dll)

MP3 is a data format used in encoding, it's like saying is ASCII dynamic/static.
http://en.wikipedia.org/wiki/MP3

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
Peter Godron
Honored Contributor

Re: Dynamic Executables and Static files

Hi,
could you please complete the thread by awarding points to helpful answers and summarising the solution for you.
This will help resolution of similar problems in the future.

http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions and how to close this thread.