On Fri, Mar 21, 2008 at 5:37 PM, Andrew Pinski <[EMAIL PROTECTED]> wrote:
> On Fri, Mar 21, 2008 at 5:29 PM, H.J. <[EMAIL PROTECTED]> wrote:
>  > When passing _Decimal64 or _Decimal128 to a function via stack, how
>  >  should they be aligned? Currently, gcc aligns them at 4byte boundary.
>  >  Is this desirable?
>
>  Shouldn't it always be 4 byte aligned because the SysV ABI only talks
>  about word alignment?
>

DFP is beyond i386 psABI. Gcc aligns _Decimal32 to 4 byte, _Decimal64 to 8 bytes
and _Decimal128 to 16bytes. The question is what is the best alignment for them
when passing to a functions.


H.J.

Reply via email to