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]

Re: x86 alignment stuff


>Does anybody know why we don't items in the static store on the
>x86?  Seems to me we can align stuff in the static store via
>DATA_ALIGNMENT and friends without breaking ABI compatability.
 
The x86 ABI alignment is: char (1), short (2), int/long/enum (4),
*type (4), float (4), double (4), long double (4).
double and long double are of course the interesting ones.

i386.h does not currently define DATA_ALIGNMENT.  Most targets use it
to align arrays of char on a cache line boundary.  The alpha uses to
align constants and variables to a word boundary.





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