[PATCH/RFC] Constify various opcodes tables

Klee Dienes klee@apple.com
Thu Oct 31 12:48:00 GMT 2002


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.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: opcodes-diffs.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20021031/fd347dfb/attachment.txt>


More information about the Binutils mailing list