This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: x86 alignment stuff
- To: egcs at cygnus dot com
- Subject: Re: x86 alignment stuff
- From: Stan Cox <scox at cygnus dot com>
- Date: 22 Feb 1998 16:39:07 -0800
>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.