1.1.5 $CALLING : Specify calling convention

The f$CALLING g directive tells the compiler which calling convention should be used if none is specied:

{$CALLING REGISTER}

By default it is REGISTER. The following calling conventions exist:

register
cdecl
pascal
safecall
stdcall
oldfpcall

For a more detailed explanation of calling conventions, section 6.3, page 319. As a special case, DEFAULT can be used, to restore the default calling convention.