Alignment pragmas?
Alignment pragmas?
- Subject: Alignment pragmas?
- From: "Blair M. Burtan" <email@hidden>
- Date: Sun, 11 Mar 2007 12:45:20 -0700
Are there any alignment pragmas in Xcode/GCC like there were in Codewarrior?
Something I'm trying to understand is why class instances get padded
differently. So far I've determined that the size of a class instance is 4
bytes larger than the sum of the members' sizes. Let's say you have a class
with 4 longs. Sizeof returns 20 bytes instead of 16. In Codewarrior, that
size gets padded out to 24 bytes (evenly divisible by 8) but GCC doesn't pad
it.
So the real question is: Is there a way to force GCC to pad things out the
same way?
Blair M. Burtan
Northern Lights Productions
www.northernlights3D.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden