Subject: Re: NetBSD 2.0 Dynamically Linked?
To: Patrick Welche <prlw1@newn.cam.ac.uk>
From: Bang Jun-Young <junyoung@NetBSD.org>
List: netbsd-help
Date: 06/04/2004 14:25:21
Patrick Welche wrote:
> On Thu, Jun 03, 2004 at 09:26:45AM -0400, Jeff Flowers wrote:
> > If this change is in NetBSD 2.0, can anyone tell me how this has
> > effected NetBSD, good or bad? I have not yet had a chance to try NetBSD
> > 2.0 but, for example, I would think that a dynamically linked NetBSD
> > system would be smaller but perhaps a tad bit slower. Would this be a
> > correct assumption?
>
> I don't think so: (shooting from the hip) if essentially those
> programs all use libc, libc is basically always going to be in
> memory, so you won't have to load it :) So, I don't know about
> speed, I would guess faster. My recollection was that linking
> everything dynamically makes internationalisation cheaper - you
> don't need all the translations in all the static objects, just
> dynamically load the relevant translation.

No, dynamically linked binaries are loaded (much) slower than statically 
linked ones, since symbol resolution is usually taking quite a lot of time. 

Jun-Young