PowerPC64 alignment of double in structs

Alan Modra amodra at bigpond.net.au
Thu Sep 18 02:11:59 EST 2003

http://gcc.gnu.org/ml/gcc-patches/2003-09/msg01003.html is a proposal
for fixing struct layout rules on powerpc64-linux-gcc to comply with
the PowerPC64 Linux ABI.  The ABI specifies 4 byte alignment for
doubles, which is a little surprising for someone without an AIX
background, and isn't ideal for speed.  An alternative would be to
change the ABI and gcc (and presumably xlc) to natural alignment.

I'm interested in opinions..

Alan Modra
IBM OzLabs - Linux Technology Centre

** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/

More information about the Linuxppc64-dev mailing list