From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,4cd9428d3407c70e X-Google-Attributes: gidfee84,public From: Jeff Denham Subject: Re: Linker virtual size Date: 1998/09/15 Message-ID: <35FEB41B.EE58A65A@brighttiger.com>#1/1 X-Deja-AN: 391432218 Content-Transfer-Encoding: 8bit References: <35FE6050.19A1@lsl.co.uk> <35FE9048.794B@zk3.dec.com> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@digex.net X-Trace: newsreader.digex.net 905884718 207.86.119.34 (Tue, 15 Sep 1998 14:38:38 EDT) Organization: Bright Tiger Technologies MIME-Version: 1.0 NNTP-Posting-Date: Tue, 15 Sep 1998 14:38:38 EDT Newsgroups: comp.unix.osf.osf1 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