• 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: Alignment pragmas?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alignment pragmas?


  • Subject: Re: Alignment pragmas?
  • From: Rua Haszard Morris <email@hidden>
  • Date: Mon, 12 Mar 2007 09:50:10 +1300

Oh and
__attribute__ ((aligned()))

That's the very very gcc one.

On Mar 12, 2007, at 8:45 AM, Blair M. Burtan wrote:

Are there any alignment pragmas in Xcode/GCC like there were in Codewarrior?

Something I'm trying to understand is why class instances get padded
differently. So far I've determined that the size of a class instance is 4
bytes larger than the sum of the members' sizes. Let's say you have a class
with 4 longs. Sizeof returns 20 bytes instead of 16. In Codewarrior, that
size gets padded out to 24 bytes (evenly divisible by 8) but GCC doesn't pad
it.


So the real question is: Is there a way to force GCC to pad things out the
same way?


Blair M. Burtan
Northern Lights Productions
www.northernlights3D.com



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40adinstruments.com


This email sent to email@hidden

_______________________________________________ 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: 
 >Alignment pragmas? (From: "Blair M. Burtan" <email@hidden>)

  • Prev by Date: Re: Alignment pragmas?
  • Next by Date: Re: Does exists something as CURRENT_EXECUTABLE_PATH ?
  • Previous by thread: Re: Alignment pragmas?
  • Next by thread: Xcode issues
  • Index(es):
    • Date
    • Thread