On 1/31/2012 4:28 PM, Stewart Gordon wrote:
That isn't alignment, that's padding built into the type. I assume you're testing on Linux. I've heard before that long double/real is 12 bytes under Linux because it includes 2 bytes of padding. I don't know why Linux does it that way, but there you go.
Both the alignment and padding of reals changes from platform to platform.