This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH/RFC] Constify various opcodes tables


There's a bunch of arrays in the opcodes/ directory that are just used for table lookup. Declaring them as 'const' allows the compiler/linker to put them in read-only pages, which can be a significant win on some systems.

2002-10-31 Klee Dienes <kdienes@apple.com>

* arm-opc.h (arm_opcodes): Mark as const.
(thumb_opcodes): Mark as const.
* avr-dis.c (avr_opcodes): Mark as const.
* h8500-opc.h (h8500_table): Mark as const.
* i386-dis.c (Suffix3DNow): Mark as const.
* m32r-desc.c (m32r_cgen_opval_gr_names_entries): Mark as const.
* mcore-opc.h (mcore_table): Mark as const.
* sh-opc.h (sh_table): Mark as const.
* w65-opc.h (optable): Mark as const.
* x8k-opc.h (z8k_table): Mark as const.

Attachment: opcodes-diffs.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]