[fpc-devel] Stack alignment on i386

Sven Barth pascaldragon at googlemail.com
Thu Dec 22 15:40:43 CET 2011


Am 22.12.2011 15:31, schrieb Jonas Maebe:
>
> On 22 Dec 2011, at 15:12, Sven Barth wrote:
>
>> Hmm... I have thought a bit. Do you (or someone else) think it's
>> feasible (and useful) to add a "procedure modifier" that allows you to
>> specify the stack alignment that should be used when calling that
>> procedure? (of course this modifier should be considered as "from
>> great power comes great responsibilty" ^^)
>
> I think that the i386/Linux compiler and RTL should be modified to
> guarantee 16 byte alignment at all times, since that's how they
> apparently redefined their ABI. The generated code will also be
> backwards compatible.

i386/Win32 should be adjusted then as well, because I suspect very much 
that this is the reason for my problems with OpenCV... (on Windows as 
well as on Linux)

Regards,
Sven




More information about the fpc-devel mailing list