From: Jeff Denham <jdenham@brighttiger.com>
Subject: Re: Linker virtual size
Date: 1998/09/15 [thread overview]
Message-ID: <35FEB41B.EE58A65A@brighttiger.com> (raw)
In-Reply-To: 35FE9048.794B@zk3.dec.com
Joe Mario wrote:
> Bill James wrote:
> > I guess lots/all of us suffer from this - we customarily get VS over
> > 300Mb and sometimes 400Mb while linking our 35Mb executable. 128Mb
> > machine unusable during this period.
> >
> > Why is it so big???
>
> The amount of memory used by ld during a link is primarily a function of
> the
> number and size of the input objects and the number of external
> symbols in those objects. Other things come into play but to a smaller
> degree. The resultant size of the executable says nothing about what
> the linker was dealing with for inputs.
In other words, ld is essentially mmap()-ing the whole
shooting match -- .o's and referenced .a and .so --
into its address space. This makes it much more efficient
in terms of its I/O behavior, but as you're seen, can
result in a huge VM footprint.
__________________________________________________
Jeff Denham (jdenham@brighttiger.com)
Bright Tiger Technologies
SmartCluster� Software for Distributed Web Servers
http://www.brighttiger.com
125 Nagog Park
Acton, MA 01720
Phone: (978) 263-5455 x177
Fax: (978) 263-5547
next prev parent reply other threads:[~1998-09-15 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-09-15 4:00 Linker virtual size Bill James
1998-09-15 4:00 ` Joe Mario
1998-09-15 4:00 ` Jeff Denham [this message]
1998-09-18 4:00 ` Bill James
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox