Re: gcc pragma pack() question
Re: gcc pragma pack() question
- Subject: Re: gcc pragma pack() question
- From: Jean-Francois Roy <email@hidden>
- Date: Sun, 06 Apr 2003 16:07:50 -0400
I read in Mach-O Runtime Architecture that it's #pragma option
align=[mode] and not #pragma options align=[mode], where
[mode]={power,mac68k,natural,packed,reset}. So which one is it?
On Saturday, Apr 5, 2003, at 19:01 America/Montreal, Stephane Huaulme
wrote:
for the curious one's, the answer was:
#pragma options align=mac68k
was affecting the default values for
#pragma pack()
stephane
On Saturday, April 5, 2003, at 01:25 PM, Stephane Huaulme wrote:
while compiling for MacOSX, with -mcpu=750 using gcc, I use the
following statement in a header:
#pragma pack()
which, returns the fields packing in struct to the default setting
for the target.
My problem is that I get 2 different results in 2 different
compilations using the same #pragma, and I can't figure out what is
affecting it. In one case a char uses 2 bytes inside a struct, while
in the other the same char uses 4 bytes.
My question is: what statement / compile flags / etc can affect the
size of a char in a struct after #pragma pack(). AFAIK, I'm using the
very same set of compile flags in both cases.
thanks
stephane
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
Jeff Roy
--
Co-Founder of MacStorm
Programmer at MacStorm
http://www.macstorm.org
http://www.theworldcrafters.com
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.