This is the mail archive of the
mailing list for the binutils project.
RFA: performance improvement for PowerPC disassembly
- From: James Lemke <jwlemke at codesourcery dot com>
- To: <binutils at sourceware dot org>
- Date: Wed, 14 Mar 2012 12:09:58 -0400
- Subject: RFA: performance improvement for PowerPC disassembly
The VLE port caused me to look at performance here. Currently we use a simple
linear search. A binary search seemed like a big change with potential
problems for matching the correct extended mnemonic. Instead, I modified the
existing linear search to start "near" the desired value rather than always at
the beginning of the table. This gives substantial performance gains with
minimal new complexity.
On gcc1-power7.osuosl.org I built powerpc-unknown-linux-gnu with and w/o this
These are median times:
$ time install/bin/objdump-00 -d /lib/libc.so.6 >/dev/null
$ time install/bin/objdump-01 -d /lib/libc.so.6 >/dev/null
Dejagnu test results before and after the patch are identical for gas,
binutils, ld, gcc, g++, and gfortran.
A bootstrap of powerpc-unknown-linux-gnu is running now.
Mentor Graphics / CodeSourcery
Orillia Ontario, +1-613-963-1073
Description: Text document