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: drow at mvista dot com, jimb at redhat dot com
- Cc: ac131313 at redhat dot com, ezannoni at redhat dot com, gdb-patches at sources dot redhat dot com, msnyder at redhat dot com
- Date: Mon, 18 Aug 2003 18:35:15 -0400
- Subject: Re: [rfa] save space by using enum bitfields
Here is some more data on a larger dataset.
The target program is a specific gdb.exe file with
LD_LIBRARY_PATH set to /usr/lib/debug, so that I am getting
glibc-2.2.93-5-rh with debugging symbols turned on.
I use "gdb -readnow" to read all the symbols on startup.
That increases memory usage from 20 megabytes to 100 megabytes.
'ps axuww' says:
old: 117280 k
new: 108112 k
'maint space 1' says:
old: 99352576
new: 89997312
This is 8% to 10% savings here on a 100 megabyte process.
Michael C