This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: parallelized 'ld'?
- From: Ian Lance Taylor <ian at airs dot com>
- To: marcov at dragon dot stack dot nl (Marco van de Voort)
- Cc: binutils at sources dot redhat dot com
- Date: 25 Jul 2003 21:07:49 -0700
- Subject: Re: parallelized 'ld'?
- References: <20030725234442.2790F5F187@dragon.stack.nl>
marcov@dragon.stack.nl (Marco van de Voort) writes:
> If both assumptuons are true, I'd simply change malloc to an awfully dumb
> implementation that doesn't really deallocate any mem, doesn't merge
> anything. If the below pseudocode looks bad, it's because my C is a bit
> rusty, as long as the idea is good :-)
That kind of thing should be handled reasonably already. BFD uses
objalloc structures, which are basically like obstacks: they allocate
large chunks of memory, and hand out small chunks quickly using inline
macros. See include/objalloc.h.
Ian