From: sl AT psycode DOT com DOT REMOVE_THIS Newsgroups: comp.os.msdos.djgpp Subject: Re: RHIDE, commandline-line and linking Date: 5 Aug 1998 19:46:03 GMT Organization: http://www.supernews.com, The World's Usenet: Discussions Start Here Lines: 19 Message-ID: References: NNTP-Posting-Host: 205.205.70.86 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Wed, 5 Aug 1998 17:07:09, Eli Zaretskii wrote: > The problem is not with the number of object files or the libraries. The > problem is with the total number of symbols that these include. The GNU > linker is a memory hog: it eats up a lot of memory per each symbol, so > you could run out of virtual memory when linking extremely large > programs. For example, linking Emacs requires about 9MB of memory and > produces an executable less than 2MB. > > 100 object files shouldn't be a problem, though. You've got to be kidding me.. I've got a 200k (that includes the header file and the .cc file) library I created and when I compile it, it requires 21MB of ram in order to create a 1MB .o file.. What am I doing wrong here? If you want a sample copy it's available for free at "http://www.angelfire.com/ca/shadowcraft/" under the project name "DateTime" (just click on it).. Why is it using up 21MB?! Gili