bug-glibc
[Top][All Lists]
Advanced

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

Re: (no subject)


From: Andreas Jaeger
Subject: Re: (no subject)
Date: Fri, 07 Sep 2001 08:43:38 +0200
User-agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Academic Rigor)

address@hidden writes:

> why does gcc automatically link with most parts of the gnu c library,

It only links with libc.

> but does not with larger parts of the lib (see: math) unless it is told
> to do so?

That's practice on most Unix systems.

> is this for performance reasons?

Yes but not only:

For each library your application is linked against, the library is to
be loaded and relocated at program startup and therefore increases
startup time and virtual memory usage.

The other question is also which libraries to link in per default -
you really can't add anything, and sometimes more than one library
defines the same symbol.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs address@hidden
   private address@hidden
    http://www.suse.de/~aj



reply via email to

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