[PATCH] configure: win32 has 4 byte argument aligment, we have more

Maarten Lankhorst m.b.lankhorst at gmail.com
Mon Apr 19 07:50:58 CDT 2010


Hi Marcus,

2010/4/19 Marcus Meissner <meissner at suse.de>:
> Hi,
>
> The Win32 ABI has its stack arguments aligned at 4 (2^2) bytes.
> For MMX/SSE operations we however need to have the stack aligned
> to 16 (2^4).
>
> So specify this explicitly.
>
> (This should probably be even part of attribute((stdcall)) perhaps
>  in gcc. Not sure though.)
Are you sure this is the case in win64 too? I'd assume that it would
probably be 16 byte aligned there, since the first 4 arguments would
be passed in registers and it could ensure stack alignment since they
owned the abi from the start. If not it would definitely be 8.

Cheers,
Maarten



More information about the wine-devel mailing list