[rfa:symtab] SYMBOL_LOCATION_FUNCS -> SYMBOL_OPS
Andrew Cagney
cagney@gnu.org
Sat Nov 8 20:36:00 GMT 2003
Hello,
This patch generalizes the per-symbol location_funcs, replacing them
with a symbol_ops vector (the contents are unchanged). The patch
doesn't change the size of the symbol.
As the comment hints:
+ /* NOTE: cagney/2003-11-02: The fields "aclass" and "ops" contain
+ overlaping information. Since GDB has only a small finite number
+ of symbol classes it should be possible to merge the two fields
+ into a single ops-table "index". Each entry providing both the
+ "ops" and the "aclass" values. Doing that would shave 32 bits
+ off every symbol. */
The patch sets us up for a more significant change - merge "ops" and
"aclass" - and hence eliminates 32 bits (or 20%) of each symbol. I
should note that right now the details of the merge are "left as an
exercise for the reader".
ok?
Andrew
PS: Hmm, better make certain I tested this on a dwarf2 system.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20031108/a338ab73/attachment.ksh>
More information about the Gdb-patches
mailing list