This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How should _Decimal64 and _Decimal128 be aligned on stack?
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: ia32-abi at googlegroups dot com, GCC <gcc at gcc dot gnu dot org>
- Date: Tue, 1 Apr 2008 11:18:04 -0700
- Subject: Re: How should _Decimal64 and _Decimal128 be aligned on stack?
- References: <5b2c4dff-3b96-488e-9556-d84f6b65b961@i12g2000prf.googlegroups.com> <de8d50360803211737y619b91bfl307f3845aadd67ab@mail.gmail.com> <6dc9ffc80803212100r161ee133uf3271cd02ecfbe3c@mail.gmail.com> <1206276060.10138.2.camel@localhost> <20080323150918.GA7783@lucon.org> <6dc9ffc80803241729v5304f258g25323f1c629f0a2c@mail.gmail.com> <a5d7922e-019a-484a-b506-994b6c08f976@e6g2000prf.googlegroups.com>
Hi David,
I added gcc mailing list.
H.J.
On Tue, Apr 1, 2008 at 10:53 AM, Dave Kreitzer
<david.l.kreitzer@intel.com> wrote:
>
> > I think we should align _Decimal64 and _Decimal128 to their natural
> > alignments when passing a function. The same should apply to x86-64
> > when they are passed on stack.
> >
>
> Rather than aligning _Decimal64 to its natural boundary, I think it is
> more sensible to be consistent with the existing 8-byte scalar types,
> i.e. double and long long. That would mean aligning _Decimal64 to 4
> bytes within structures and when passing to a function.
>
That means to change the default alignment of _Decimal64 to 4 bytes in
32bit mode.
> For _Decimal128, I agree with the conclusion to align to 16-bytes
> within structures and as outgoing arguments. That behavior is
> consistent with the existing data types __m128, __m128d, and __m128i.
>
> Dave Kreitzer
> IA-32 and Intel 64 Code Generation
> Intel Compiler Lab
>
>
>
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups "IA32 System V Application Binary Interface" group.
> To post to this group, send email to ia32-abi@googlegroups.com
> To unsubscribe from this group, send email to ia32-abi-unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/ia32-abi?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>