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: [PATCH] Improve objdump -S performance


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


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