delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/05/16:00:47

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: <iCdMCj1ZQ5j2-pn2-8LC4T2in4lch@portX67.lanzen.net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980805200219 DOT 13472A-100000 AT is>
NNTP-Posting-Host: 205.205.70.86
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Wed, 5 Aug 1998 17:07:09, Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019