-
- Downloads
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).
Showing
- gas/Makefile.am 1 addition, 1 deletiongas/Makefile.am
- gas/Makefile.in 1 addition, 1 deletiongas/Makefile.in
- gas/config/tc-i386.c 2 additions, 1 deletiongas/config/tc-i386.c
- opcodes/Makefile.am 8 additions, 6 deletionsopcodes/Makefile.am
- opcodes/Makefile.in 8 additions, 6 deletionsopcodes/Makefile.in
- opcodes/i386-gen.c 47 additions, 4 deletionsopcodes/i386-gen.c
- opcodes/i386-mnem.h 2341 additions, 0 deletionsopcodes/i386-mnem.h
- opcodes/i386-opc.h 1 addition, 1 deletionopcodes/i386-opc.h
- opcodes/i386-tbl.h 6144 additions, 3818 deletionsopcodes/i386-tbl.h
Loading
Please register or sign in to comment