This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa] save space by using enum bitfields
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: carlton at kealia dot com, msnyder at redhat dot com
- Cc: ac131313 at redhat dot com, ezannoni at redhat dot com, gdb-patches at sources dot redhat dot com, jimb at redhat dot com
- Date: Mon, 18 Aug 2003 18:07:18 -0400
- Subject: Re: [rfa] save space by using enum bitfields
There are a variety of semi-ugly ways to write this. Andrew C
mentioned that he wanted to re-use the same way that gcc uses.
I like that.
Also I would prefer to keep the ": 8" in the structure definition
rather than stick it into the macro. Some of these enum's need
even less space than 8 bits and we might get into some better
packing that way.
As far as the size goes, I will try my test case with "-readnow"
to suck in all the symbols from the target executable and its
shared libraries (gdb + libc). With the old gdb, this takes
117280 kilobytes, most of which has to be symbol table related.
Michael C