[fpc-pascal] cdecl or stdcall on WinCE for ARM

Florian Klaempfl florian at freepascal.org
Fri Nov 23 13:19:38 CET 2007

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.

More information about the fpc-pascal mailing list