• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Data Alignment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Data Alignment
      • From: koko <email@hidden>
  • Prev by Date: Re: Debugging helpers inside a main bundle app
  • Next by Date: Re: Data Alignment
  • Previous by thread: Re: Tabs open new windows
  • Next by thread: Re: Data Alignment
  • Index(es):
    • Date
    • Thread