This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: parallelized 'ld'?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]