Re: gcc pragma pack() question
Re: gcc pragma pack() question
- Subject: Re: gcc pragma pack() question
- From: Stephane Huaulme <email@hidden>
- Date: Sat, 5 Apr 2003 18:01:15 -0600
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.