This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Darwin gcc 3.3 sizeof of C++ structures with long long ints is strange


Hi,

That's interesting to know.  That means any AIX port of OOo would run into 
the same difficulties.  Does the AIX gcc version support anything like 
-malign-natural does for Apple's gcc 3.1 (byte aligned to 1, short aligned 
to 2, int aligned to 4, double and long long int aligned to 8)?

Any particular reason for treating long long ints differently from doubles?

Thanks,

Kevin

On March 19, 2003 06:52 pm, David Edelsohn wrote:
> The Apple PowerMac alignment was the same as AIX.  Unless Apple
> has changed their ABI, doubles are not naturally aligned, but long long
> ints are.
> 
> David
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]