Data Alignment
Data Alignment
- Subject: Data Alignment
- From: koko <email@hidden>
- Date: Thu, 16 Aug 2012 13:05:37 -0600
I have a data structure that was created and only used on PPC some time ago.
I now must use this same structure on x86 and then on PPC.
That is the structure represents a record, data comes in, the structure is updated and written to a file by an x86 program.
Now the written file must be used on PPC. (Note: I do know i need to handle endianess but alignment first.)
On PPC the sizeof(struct) is 134 on x86 it is 140.
How do I deal with this? Id there a compiler / linker setting to non-align … is this a #pragma or something?
Help!
-koko
_______________________________________________
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