Difference between revisions of "local compiler directives"
From Free Pascal wiki
Jump to navigationJump to searchJwdietrich (talk | contribs) (Conditional compilation translated.) |
Jwdietrich (talk | contribs) |
||
Line 62: | Line 62: | ||
*[[sIfndef/de|$IFNDEF]] Begin of conditional compilation | *[[sIfndef/de|$IFNDEF]] Begin of conditional compilation | ||
*[[sIfopt/de|$IFOPT]] Begin of conditional compilation | *[[sIfopt/de|$IFOPT]] Begin of conditional compilation | ||
+ | |||
+ | ''The following text is still to be translated to English:'' | ||
==Selbstdefinierte Compiler- Warnungen, Meldungen, Hinweise usw.== | ==Selbstdefinierte Compiler- Warnungen, Meldungen, Hinweise usw.== |
Revision as of 14:44, 21 September 2013
│
Deutsch (de) │
English (en) │
français (fr) │
Local directives may be used more then once in a unit or program.
Local compiler direvtives
- $A and $ALIGN determines the of alignment of data in records.
- $A1, $A2,$A4 and $A8 determines the of alignment of data in records. Has the same effect as the directive $PACKRECORDS.
- $B or $BOOLEVAL enables short-cut evaluation of boolean values.
- $C or $ASSERTIONS supports debugging.
- $BITPACKING enables bit-wise packing of records.
- $CALLING determines calling-convention of routines.
- $CHECKPOINTER checks validity of pointers.
- $CODEALIGN determines the code-aligning in memory.
- $COPERATORS enables usage of operatores similar to conventions in the C language.
- $DEFINE or $DEFINEC enables definition of own symbols.
- $EXTENDEDSYM ignored by compiler.
- $F ignored by compiler.
- $FPUTYPE compiles according to FPU type
- $GOTO enables Goto and Label
- $H or $LONGSTRINGS determines string type for reserved word string.
- $HPPEMIT ignored by compiler.
- $IMPLICITEXCEPTIONS helps to avoid memory leaks.
- $INLINE copies procedures to the place, where they have been called from.
- $INTERFACES determines interface type.
- $I or $IOCHECKS enables checking of input/output.
- $I or $INCLUDE includes file in compilation.
- $I or $INCLUDE included certein compiler information.
- $J or $WRITEABLECONST enables run-time assigning of values to typed constants.
- $L or $LINK inserts object file during linking.
- $LINKLIB inserts library during linking.
- $M or $TYPEINFO creates RTTI
- $MACRO enables usage of macros.
- $MINENUMSIZE for Delphi-compatibility, see $PACKENUM or $Z
- $MINFPCONSTPREC sets minimum accuracy of floating point operations.
- $NODEFINE ignored by compiler.
- $OBJECTCHECKS checks usage of pointer to self.
- $OPTIMIZATION switches on certain optimizations.
- $OUTPUT_FORMAT determines output format of object file.
- $PACKENUM or $Z enables packing of compiler enumerations.
- $PACKRECORDS determines alignment of records in memory.
- $PACKSET determines packing of sets.
- $POP recreates saved compiler settings.
- $PUSH saves current compiler settings.
- $OVERFLOWCHECKS checkes integer variables for overflow.
- $R or $RANGECHECKS checks overflow of index in compound variables.
- $R or $RESOURCE inserts resource file.
- $STATIC enable usage of the reserved word static.
- $T or $TYPEDADDRESS determines, if the address operator @ delivers a typed or untyped pointer.
- $UNDEF undefines symbol.
- $V or $VARSTRINGCHECKS enables checking of assignments to string variables.
- $W or $STACKFRAMES determines conditions for the creation of stack frames.
- $WAIT waits with execution until the enter key has been pressed.
The following text is still to be translated to English:
Conditional compilation
- $ELSE defines alternative path in conditional compilation
- $ELSEIF defines alternative and new branch conditional compilation
- $ENDIF defines end of conditional compilation
- $IF Begin of conditional compilation
- $IFDEF Begin of conditional compilation
- $IFNDEF Begin of conditional compilation
- $IFOPT Begin of conditional compilation
The following text is still to be translated to English:
Selbstdefinierte Compiler- Warnungen, Meldungen, Hinweise usw.
- $ERROR gibt eine selbstdefinierte Fehlermeldung aus
- $FATAL gibt eine selbstdefinierte fatale Fehlermeldung aus
- $HINT erstellt eine selbstdefinierte Hinweismeldung
- $HINTS erlaubt selbstdefinierte Hinweismeldungen
- $INFO gibt eine selbstdefinierte Infomeldung aus
- $MESSAGE erstellt eine selbstdefinierte Infonachricht
- $NOTE erstellt eine selbstdefinierte Notizmeldung
- $NOTES erlaubt das erstellen von selbstdefinierten Notizmeldungen
- $STOP gibt eine selbstdefinierte fatale Fehlermeldung aus
- $WARNING erstellt eine selbstdefinierte Warnmeldung
- $WARNINGS erlaubt selbstdefinierte Warnmeldungen
Lokale Compiler Direktiven nur für Intel 80x86 und kompatible Prozessoren
- $ASMMODE Assemblermodus
- $I386_XXX legt das Assemblerformat fest
- $MMX erzwingt Optimierungen für den MMX Prozessor
- $SATURATION Saturation (Schutz gegen Speicherüberlauf) Operationen für den MMX Prozessor
- $MAXFPUREGISTERS legt die maximale Anzahl der zu nutzenden Fliesskommaregister fest
Lokale Compiler Direktiven nur für das Betriebssystem Darwin
- $LINKFRAMEWORK fügt ein Framework ein
Lokale Compiler Direktiven nur für Compiler Mode MacPas
Diese Befehle werden aus Kompatibilität zum existierenden Mac OS Pascal Compiler unterstützt:
- $A und $ALIGN bestimmt die Datenausrichtung von Records
- $ERRORC gibt eine Fehlermeldung aus
- $Q oder $OV überwacht den Überlauf von Integervariablen
Bedingte Compilierung
- $ELSEC ist eine Verzweigung der bedingten Compilierung
- $ELIFC ist eine Verzweigung der bedingten Compilierung
- $ENDC ist das Ende einer bedingten Compilierung
- $IFC ist der Anfang einer bedingten Compilierung