This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Why is DImode aligned at 8 byte for i386?
- From: "Richard Guenther" <richard dot guenther at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: gcc at gcc dot gnu dot org, jh at suse dot cz, ubizjak at gmail dot com
- Date: Mon, 4 Feb 2008 10:59:53 +0100
- Subject: Re: Why is DImode aligned at 8 byte for i386?
- References: <20080204031135.GA7865@lucon.org>
On Feb 4, 2008 4:11 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> DImode is aligned at 8 byte in i386. Since 32bit doesn't have
> 64bit register, can we align DImode at 4byte instead of 8
> for i386? It shouldn't have any negative impact on performance.
I don't think DImode is aligned at 8 bytes on i386, at least not as
far as struct layout is concerned.
Richard.