Sign in Join
Wiki copytemporary

sCalling/de

Zurück zu den lokalen Compilerdirektiven.\

=$CALLING= Die Direktive $CALLING sagt dem Compiler welche Aufrufkonvention er für Prozeduren und Funktionen verwenden soll.
Die Direktive $CALLING hat gilt nur für Prozeduren und Funktionen, für die im Einzelfall keine Aufrufkonvention festgelegt wurde.
Die Standardaufrufkonvention ist Register.
Es gibt folgende Aufrufkonventionen:\

CDECL

C Compiler Aufrufkonvention

CPPDECL

C++ Compiler Aufrufkonvention

DEFAULT

Stellt die Standard Aufrufkonvention her.

FAR16

Diese Einstellung wird ignoriert und existiert zur Kompatibilität mit Turbo Pascal / Delphi 1.0.

FPCCALL

Ältere Free Pascal Compiler (1.0.x und älter) Standard Aufrufkonvention.

INLINE

Verwendet inline Code. Der Code des Unterprogramms wird an die Aufrufende Stelle kopiert.

OLDFPCCALL

Dieser Aufruf ist deprecated (veraltet)

PASCAL

Pascal Aufrufkonvention

REGISTER

Die Register Aufrufkonvention ist die Standard Aufrufkonvention.

SAFECALL

Sichere Aufrufkonvention. Das aufgerufene Unterprogramm sichert alle Register.

STDCALL

Windowsbibliothek Aufrufkonvention.

SOFTFLOAT

Aufrufkonvention für ARM Prozessoren.

Beispiel:

pascal
{$CALLING CDECL}

Diese Direktive entspricht der -Cc Komandozeilen Option.\

--Olaf 17:29, 26 November 2012 (UTC)


From the Free Pascal wiki, page "sCalling/de", as it stood on 2020-02-27 after a change by GAN, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.