[next] [prev] [prev-tail] [tail] [up]

#### 1.3.4 $CALLING : Default calling convention

This directive allows specifying the default calling convention used by the compiler, when no calling convention is specified for a procedure or function declaration. It can be one of the following values:

CDECL
  C compiler calling convention.
CPPDECL
  C++ compiler calling convention.
FAR16
  Ignored, but parsed for Turbo Pascal compatibility reasons.
FPCCALL
  Older FPC (1.0.X and before) standard calling convention. If a lot of direct assembler blocks are used, this mode should be used for maximum compatibility.
INLINE
  Use inline code: the code for the function is inserted whenever it is called.
PASCAL
  Pascal calling convention.
REGISTER
  Register calling convention (the default).
SAFECALL
  Safecall calling convention (used in COM): The called procedure/function saves all registers.
STDCALL
  Windows library calling convention.
SOFTFLOAT
  For ARM processors.

This directive is equivalent to the -Cc command line option.

[next] [prev] [prev-tail] [front] [up]