On alignment
Nathan Sidwell
nathan@codesourcery.com
Tue Apr 22 12:05:00 GMT 2003
Andrew Haley wrote:
> WHat I still cannot understand is why a struct that contains a double
> is 4-aligned on x86, but a double is 8-aligned. This means that you
> cannot infer the alignment of a struct from the alignment of its
> members. Is this really part of the multi-vendor ABI?
That packing rule is part of the i86 psABI
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
The voices in my head said this was stupid too
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
More information about the Gcc
mailing list