• 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: 4 vs 8 alignment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 4 vs 8 alignment


  • Subject: Re: 4 vs 8 alignment
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 13 Dec 2006 11:05:20 -0500
  • Organization: Rogue Research

On 2006-12-12 23:51, David Fang said:

>e.g.
>struct foo { int x; char y; } __attribute__((aligned));
>
>I prefer __attribute__ over pragma for portability, but otherwise it may
>just be a matter of taste.

How is __attribute__ more portable than pragma pack?  Is it not a GNU
extension?  I know pragma pack is supported by gcc, CodeWarrior, and
Visual Studio.

--
____________________________________________________________
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

  • Follow-Ups:
    • Re: 4 vs 8 alignment
      • From: Devang Patel <email@hidden>
    • Re: 4 vs 8 alignment
      • From: David Fang <email@hidden>
References: 
 >4 vs 8 alignment (From: "Paul Cummings" <email@hidden>)
 >Re: 4 vs 8 alignment (From: David Fang <email@hidden>)

  • Prev by Date: Re: custom keywords coloring
  • Next by Date: Re: "Will be initialized after": does it matter?
  • Previous by thread: Re: 4 vs 8 alignment
  • Next by thread: Re: 4 vs 8 alignment
  • Index(es):
    • Date
    • Thread