rearrange struct value to save memory
authorTom Tromey <tromey@redhat.com>
Sat, 28 Dec 2013 05:22:07 +0000 (22:22 -0700)
committerTom Tromey <tromey@redhat.com>
Thu, 16 Jan 2014 21:56:31 +0000 (14:56 -0700)
commit98b1cfdcc8998ad3e35896ade0fdba04ceda8d74
treefc5cfeffc277830ab26c482ce56ddae9d5e6f271
parent77a194459598886be9a0bf3e3bac0a11025ef208
rearrange struct value to save memory

This patch rearranges struct value a tiny bit, moving the "regnum"
field into a hole.  This saves 8 bytes per value on a 64-bit machine,
and 4 bytes per value on a 32 bit machine.  I think it does not
negatively affect readability or performance.

Built and regtested on x86-64 Fedora 18.

2014-01-16  Tom Tromey  <tromey@redhat.com>

* value.c (struct value) <regnum>: Move earlier.
gdb/ChangeLog
gdb/value.c
This page took 0.024043 seconds and 4 git commands to generate.