This is the mail archive of the binutils@sourceware.org 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: overhead of bfd_{get,put}*()


From: "Joseph S. Myers" <joseph@codesourcery.com>
Date: Tue, 23 Feb 2010 23:34:47 +0000 (UTC)

> Hopefully the more complicated option of the runtime check for alignment 
> (using __builtin_expect to mark the aligned case as very likely) would 
> help.

Right.

> If you inline the functions it might even be possible for the 
> compiler to deduce the alignment in some cases, though I suspect that 
> won't happen much.  Of course you'd need to benchmark to see what helps.

These are target methods invoked via BFD upcalls, they can't be
inlined.


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