mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 01:50:48 +00:00
gprof: speed up line-by-line for MIPS/PowerPC/RISCV/SuperH
Roughly halves the number of bfd_find_nearest_line() calls, about 40% less time for a few different large ELF files. Signed-off-by: Richard Allen <rsaxvc@gmail.com>
This commit is contained in:
committed by
Alan Modra
parent
f19534f257
commit
b6539282a9
@@ -255,6 +255,13 @@ core_init (const char * aout_name)
|
||||
offset_to_code = 2;
|
||||
break;
|
||||
|
||||
case bfd_arch_mips:/* and microMIPS */
|
||||
case bfd_arch_powerpc:/* and VLE */
|
||||
case bfd_arch_riscv:/* and RVC */
|
||||
case bfd_arch_sh:
|
||||
insn_boundary = 2;
|
||||
break;
|
||||
|
||||
case bfd_arch_alpha:
|
||||
insn_boundary = 4;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user