• 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
Re: sizeof(aStruct) in Xcode 4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sizeof(aStruct) in Xcode 4


  • Subject: Re: sizeof(aStruct) in Xcode 4
  • From: Sean McBride <email@hidden>
  • Date: Tue, 21 Jun 2011 16:31:55 -0400
  • Organization: Rogue Research Inc.

On Tue, 21 Jun 2011 12:58:55 -0700, Jens Alfke said:

>There are some #pragmas you can use to tweak struct alignment, to get
>tighter packing; I think they’re documented in the GCC docs but they
>should probably apply to Clang too.

#pragma pack(1) // begin packing

typedef struct ...

#pragma pack() // end packing

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada
 _______________________________________________
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

References: 
 >sizeof(aStruct) in Xcode 4 (From: "McLaughlin, Michael P." <email@hidden>)
 >Re: sizeof(aStruct) in Xcode 4 (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: sizeof(aStruct) in Xcode 4
  • Next by Date: Re: sizeof(aStruct) in Xcode 4
  • Previous by thread: Re: sizeof(aStruct) in Xcode 4
  • Next by thread: Re: sizeof(aStruct) in Xcode 4
  • Index(es):
    • Date
    • Thread