Static linking vs dynamic linking

Place to discuss anything, almost. No politics, religion, Microsoft, or anything else that I (the nazi censor) deem inappropriate.

Static - or dynamic?

Static all the way man
0
No votes
No way! I say dynamic
0
No votes
Well, both have their merits in certain situations
1
50%
what's dynamic linking? I use visual basic 6...
0
No votes
i don't link. my programs don't use libraries
1
50%
 
Total votes : 2

Static linking vs dynamic linking

Postby Calum » Thu May 01, 2003 5:54 am

Static linking vs dynamic linking - what's your opinion?
i am interested in what the consensus is on this issue.

my interest is piqued by this paragraph from the introduction in Gerard Beekmans' Linux From Scratch 4.0 book:
Static linking describes a method of compiling software so that it does not require the presence of libraries when building is complete. The resulting program is able to function on its own. The program is able to do so because the pieces of the program that would normally remain in the libraries are copied from the libraries and built right into the program. Ordinarily, software is built with dynamic linking. This conserves storage space and increases the efficiency of many programs. We statically link our software in Chapter 5 because we will, in theory, be moving our development system to a virtual environment where the already mentioned libraries will be absent. If the software is built dynamically, our development suite will not function. Since the libraries we are talking about are provided by our distribution Linux, the goal of Chapter 5 is to build a development environment where those libraries are not required and is therefore independent of the distribution.
User avatar
Calum
guru
guru
 
Posts: 1343
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland

Return to The Lounge

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron