This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] rearrange struct value to save memory
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 16 Jan 2014 14:54:54 -0700
- Subject: Re: [PATCH] rearrange struct value to save memory
- Authentication-results: sourceware.org; auth=none
- References: <1389294182-982-1-git-send-email-tromey at redhat dot com>
>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
Tom> This patch rearranges struct value a tiny bit, moving the "regnum"
Tom> field into a hole. This saves 8 bytes per value on a 64-bit machine,
Tom> and 4 bytes per value on a 32 bit machine. I think it does not
Tom> negatively affect readability or performance.
Tom> Built and regtested on x86-64 Fedora 18.
I'm checking this in now.
Tom