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 /gas/Makefile.am | |
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 'gas/Makefile.am')
-rw-r--r-- | gas/Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/Makefile.am b/gas/Makefile.am index 03f51c7..f8770e8 100644 --- a/gas/Makefile.am +++ b/gas/Makefile.am @@ -453,7 +453,7 @@ i386_tbl_deps = $(srcdir)/../opcodes/i386-opc.tbl \ $(srcdir)/../opcodes/i386-reg.tbl \ $(srcdir)/../opcodes/i386-gen.c $(srcdir)/../opcodes/i386-opc.h -$(srcdir)/../opcodes/i386%init.h $(srcdir)/../opcodes/i386%tbl.h: @MAINT@ $(i386_tbl_deps) +$(srcdir)/../opcodes/i386%init.h $(srcdir)/../opcodes/i386%tbl.h $(srcdir)/../opcodes/i386%mnem.h: @MAINT@ $(i386_tbl_deps) @echo '"$@" is outdated wrt "$?"' >&2 @echo 'Please rebuild from the top level or in $(CURDIR)/../opcodes/' >&2 @false |