This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: overhead of bfd_{get,put}*()
- From: Ian Lance Taylor <iant at google dot com>
- To: David Miller <davem at davemloft dot net>
- Cc: binutils at sourceware dot org
- Date: Tue, 23 Feb 2010 08:00:55 -0800
- Subject: Re: overhead of bfd_{get,put}*()
- References: <20100222.173858.90782430.davem@davemloft.net>
David Miller <davem@davemloft.net> writes:
> The top offenders were, surprisingly for me, bfd_getb64(),
> bfd_putb64() and bfd_getb_signed_64(). And it's not because they
> touch memory, it's the byte loads and shift/or dance they do.
This is exactly why gold does its complex template dance: to avoid
that overhead.
Those functions will hit unaligned data in some cases.
Ian