[PATCH] Improve objdump -S performance

Alan Modra amodra@bigpond.net.au
Mon Apr 27 07:41:00 GMT 2009


On Mon, Apr 27, 2009 at 05:02:04PM +0930, Alan Modra wrote:
> How?  Given f1 and f2 symbols in a section, f2 > f1, start
> disassembling at f1, offset of 0.  This loads up cached_low_func with
> zero and cached symbol of f1.  As offset increases during disassembly
> of f1, things are fine until you start disassembling f2.  What throws
> f1 out of the cache?  The test you show above still passes.  In fact,
> the c->symbol.value >= cached_low_func is totally useless since it is
> just comparing parts of your cache!

Actually, I shouldn't have mentioned disassembly here.  objdump may
well be doing other things that just happen to make your cache code
work.  I should have just said "multiple calls to
_bfd_elf_find_nearest_line with increasing offset".

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list