Re: 4 vs 8 alignment
Re: 4 vs 8 alignment
- Subject: Re: 4 vs 8 alignment
- From: Devang Patel <email@hidden>
- Date: Wed, 13 Dec 2006 10:58:27 -0800
On Dec 13, 2006, at 8:05 AM, Sean McBride wrote:
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.
I am jumping into middle so pardon me. However, GCC manual says,
"GCC supports several types of pragmas, primarily in order to compile
code originally written for other compilers. Note that in general we
do not
recommend the use of pragmas; See Function Attributes, for further
explanation."
http://gcc.gnu.org/onlinedocs/gcc-4.0.3/gcc/Pragmas.html#Pragmas
-
Devang
_______________________________________________
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