This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ix86 `double' alignment (was Re: egcs-1.1 release schedule)
- To: law at cygnus dot com
- Subject: Re: ix86 `double' alignment (was Re: egcs-1.1 release schedule)
- From: john at feith dot com (John Wehle)
- Date: Tue, 23 Jun 1998 13:23:06 -0400
- cc: d dot love at dl dot ac dot uk, egcs at cygnus dot com, burley at gnu dot org
> Instead we must make sure that we always allocate stacks in 8 byte
> hunks in the prologue *and* that we push an extra dummy word on the stack
> when performing function calls where the arg list + return pointer
> are not a multiple of 8 bytes in size.
I'm seeing a lot of references to double and aligning on 8 byte boundaries.
As long as we are looking at this we may want to view it as a more general
problem. I.e. Intel recommends that
doubles be aligned on 8 byte boundarys
long doubles be aligned on 16 byte boundarys
objects >= 32 bytes in size be aligned on 32 byte boundarys
I believe that they all have similar issues with regards to encouraging
gcc to align them for optimal performance on the stack so it's possible
that they may all be "solved" with the same solution in the back end.
Just something to think about. :-)
-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------