Mail Archives: djgpp/1998/08/05/13:07:16
On 5 Aug 1998 sl AT psycode DOT com DOT REMOVE_THIS wrote:
> > I use around 12 libraries in my editor.
>
> Ok, but in the case of linking 100 .o files together.. Is _that_
> possible?
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.
- Raw text -