public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* linker memory footprint
@ 1999-10-04 18:20 J.T. Conklin
  1999-10-04 18:32 ` Ian Lance Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: J.T. Conklin @ 1999-10-04 18:20 UTC (permalink / raw)
  To: binutils

During the final link of our firmware, the linker takes a huge amount
of memory (> ~240MB) to perform it's task.  Our typical desktop work-
station only has 128MB physical memory; so performance, in a single
word, sucks.  

Before sending the IT group out to buy SIMMs, I'm wondering if there
are any changes we can make to either the way our image is linked or a
linker memory reduction project I can sell management that I should be
working on.

Some details:

We link all of our modules into relocatable objects.  Those objects
are linked with our RTOS library, creating a much larger relocatable 
object, and finally that is linked with startup code and binary images
containing I/O card firmware.  Our intermediate relocatable object is
about 100MB.  The final image is 15MB with symbols, 5MB without.

Our software is built with both i386-aout and powerpc-eabi toolchains
with debugging (-g) enbabled.  The powerpc compiler emits BINCL/EINCL
stabs, which appears to require quite a bit of memory to process.  
But disabling BINCL/EINCL support only transfers the pain to GDB.

I've linked the linker with a memory-leak tracking library, ccmalloc,
and although there apear to be some leaks (~20MB, although I haven't
used ccmalloc enough to determine whether or not there are unreported
leaks or false matches), there are not enough to fully account for the
memory usage.

Short a project that keeps debug information in the object files and
modifies GDB to find it there, is there anything that can be done to
reduce ld's memory usage?

        --jtc

-- 
J.T. Conklin
RedBack Networks

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-10-06  9:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-04 18:20 linker memory footprint J.T. Conklin
1999-10-04 18:32 ` Ian Lance Taylor
1999-10-05  9:32   ` hppa1.1-rtems grepossible failure ?\x03 Joel Sherrill
1999-10-06  7:30     ` hppa1.1-rtems grepossible failure ? Jeffrey A Law
1999-10-06  9:38       ` Joel Sherrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).