diff options
author | Jan Beulich <jbeulich@suse.com> | 2023-01-20 10:15:48 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2023-01-20 10:15:48 +0100 |
commit | 5c1392029158fa5b2946953394e566c83a0602e1 (patch) | |
tree | 5f79804018ce30301d631fb85a437ff91d26e930 /gdb/c-lang.c | |
parent | 76d3f746c538af9204bbf5d7f90188a65048c0da (diff) | |
download | gdb-5c1392029158fa5b2946953394e566c83a0602e1.zip gdb-5c1392029158fa5b2946953394e566c83a0602e1.tar.gz gdb-5c1392029158fa5b2946953394e566c83a0602e1.tar.bz2 |
x86: move insn mnemonics to a separate table
Using full pointers to reference the insn mnemonic strings is not very
efficient. With overall string size presently just slightly over 20k,
even a 16-bit value would suffice. Use "unsigned int" for now, as
there's no good use we could presently make of the otherwise saved 16
bits.
For 64-bit builds this reduces table size by 6.25% (prior to the recent
ISA extension additions it would have been 12.5%), with a similar effect
on cache occupation of table entries accessed. For PIE builds of gas
this also reduces the number of base relocations quite a bit (obviously
independent of bitness).
Diffstat (limited to 'gdb/c-lang.c')
0 files changed, 0 insertions, 0 deletions