Mail Archives: djgpp/1998/08/05/16:00:47
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 -