On 17 Sep 01, at 23:04, Russell Whitaker wrote:
[static linking]
Bigger, of course (on the order of a few hundred KB)....
Can be much more. Take the classic "hello world" as an example:
size in bytes after using strip
dynamic linking: 503014 165904 static linking 2379490 579220
Since this is more than you'd expect for such a simple program, I think the problem is the linker - although you have less overhead with static linking ( hence faster ), the linker does not know how to omit unused library code.
The linker doesn't seem to be very "smart" in this respect. Is there any hope of a smart linker for GCC or GPC? The GNU guys are so clever at doing so many amazing things that it seems odd that they cannot (or probably will not) produce a smart linker.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) Author of: Chief's Installer Pro for Win32 http://www.bigfoot.com/~African_Chief/chief32.htm Email: African_Chief@bigfoot.com