discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: static and shared libraries, stand-alone GNUstep applications


From: Pete French
Subject: Re: static and shared libraries, stand-alone GNUstep applications
Date: Sat, 28 Feb 2004 12:36:36 +0000

> But when you statically link a GNUstep app, suddenly all those popular
> libraries you are using in you programme are also statically included in
> your executable and they all have to be loaded from disk.

Hmmmm.... that doesnt sound right somehow. Surely the executable is demand
paged, so when you execute it all that happens is the pages are mem-mapped
to the pages on the disc ? They shouldnt be actually loaded into memory
unless they are actually executed by the program. This is also true of
dynamicly linked programs, but when you run a dynamicly linked executable then
the loader needs to sort out all those links too.

Certainly common sense seems to say that static code should *load* faster
than dynamic - though it may well then *run* somewhat slower initially
as it has to drag in any bits of code it uses, including any libraries, off
the disc.

-bat.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]