improving ld performance

Lars Knoll lars@trolltech.com
Tue Mar 9 10:26:00 GMT 2004


On Tuesday 09 March 2004 10:07, Nick Clifton wrote:
> Hi Andy,
>
> > I've been experimenting with changing the DEFAULT_SIZE of hash table
> > in bfd/hash.c and got significant improvements in LD CPU times when
> > linking one of our images (see below). I was wondering whether I can
> > set this from the command line or linker script?
>
> There are no such options at present, but I think that this would be a
> very good idea.  Would you like to develop a patch to do it ?

Would it be a problem to just increase the default size of the hash tables? 
The only disadvantage I could see is memory consumption, but my guess is that 
this would probably be negligible compared to all the other data the linker 
allocates.

Cheers,
Lars



More information about the Binutils mailing list