[fpc-pascal] cdecl or stdcall on WinCE for ARM
Adrian Veith
adrian at veith-system.de
Fri Nov 23 13:50:32 CET 2007
Florian Klaempfl schrieb:
> Adrian Veith schrieb:
>
>> Hi,
>>
>> what is the right calling convention for using system libraries on wince
>> for ARM ?
>>
>> I wrote a pascal wrapper for a system dll and used stdcall for the
>> calling convention - and the program worked.
>> I changed to cdecl - and the program works as well.
>>
>> In my opinion the program should have crashed on one of the two.
>>
>> Now I am puzzled.
>>
>>
>
> Both are equal on arm, you could even use register and things won't change.
>
I have guessed something like that - otherwise it would be impossible.
Thanks,
Adrian.
More information about the fpc-pascal
mailing list