local compiler directives: Difference between revisions

From Free Pascal wiki
Jump to navigationJump to search
(Unnecessary hint removed.)
(Remaining paragraphs translated.)
Line 53: Line 53:


==Conditional compilation==
==Conditional compilation==
*[[sElse/de|$ELSE]] defines alternative path in conditional compilation
*[[sElse/de|$ELSE]] defines alternative path in conditional compilation.
*[[sElseIf/de|$ELSEIF]] defines alternative and new branch conditional compilation
*[[sElseIf/de|$ELSEIF]] defines alternative and new branch conditional compilation.
*[[sEndif/de|$ENDIF]] defines end of conditional compilation
*[[sEndif/de|$ENDIF]] defines end of conditional compilation.
*[[sIf/de|$IF]] Begin of conditional compilation
*[[sIf/de|$IF]] Begin of conditional compilation.
*[[sIfdef/de|$IFDEF]] Begin of conditional compilation
*[[sIfdef/de|$IFDEF]] Begin of conditional compilation.
*[[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.


==Self-defined compiler warnings, messages and hints==
==Self-defined compiler warnings, messages and hints==
Line 66: Line 66:
*[[sHint/de|$HINT]] displays a self-defined hint.
*[[sHint/de|$HINT]] displays a self-defined hint.
*[[sHints/de|$HINTS]] enables self-defined hints.
*[[sHints/de|$HINTS]] enables self-defined hints.
*[[sInfo/de|$INFO]] display a self-defined information message
*[[sInfo/de|$INFO]] display a self-defined information message.
*[[sMessage/de|$MESSAGE]] creates a self-defined information message
*[[sMessage/de|$MESSAGE]] creates a self-defined information message.
*[[sNote/de|$NOTE]] creates a self-defined note
*[[sNote/de|$NOTE]] creates a self-defined note.
*[[sNotes/de|$NOTES]] enables the creation of self-defined notes
*[[sNotes/de|$NOTES]] enables the creation of self-defined notes.
*[[sStop/de|$STOP]] display a self-defined fatal error message
*[[sStop/de|$STOP]] display a self-defined fatal error message.
*[[sWarning/de|$WARNING]] creates a self-defined warning
*[[sWarning/de|$WARNING]] creates a self-defined warning.
*[[sWarnings/de|$WARNINGS]] enables self-defined warnings.
*[[sWarnings/de|$WARNINGS]] enables self-defined warnings.


''The following text is still to be translated to English:''
==Local compiler direvtives for x86 processors only==
*[[sAsmmode/de|$ASMMODE]] assembler mode.
*[[sI386xxx/de|$I386_XXX]] determines the assembler format.
*[[sMmx/de|$MMX]] enables optimizations for MMX processores.
*[[sSaturation/de|$SATURATION]] Enables saturation (protection from memory-overflow) for MMX processores.
*[[sMaxfpuregisters/de|$MAXFPUREGISTERS]] determines the maximum number of floating-points registers to use.


==Lokale Compiler Direktiven nur für Intel 80x86 und kompatible Prozessoren==
==Local compiler direvtives for Darwin-based operating systems only==
*[[sAsmmode/de|$ASMMODE]] Assemblermodus
*[[sLinkframework/de|$LINKFRAMEWORK]] inserts Framework.
*[[sI386xxx/de|$I386_XXX]] legt das Assemblerformat fest
*[[sMmx/de|$MMX]] erzwingt Optimierungen für den MMX Prozessor
*[[sSaturation/de|$SATURATION]] Saturation (Schutz gegen Speicherüberlauf) Operationen für den MMX Prozessor
*[[sMaxfpuregisters/de|$MAXFPUREGISTERS]] legt die maximale Anzahl der zu nutzenden Fliesskommaregister fest


==Lokale Compiler Direktiven nur für das Betriebssystem Darwin==
==Local compiler direvtives for MacPas mode only==
*[[sLinkframework/de|$LINKFRAMEWORK]] fügt ein Framework ein
The following directives are supported for compatibility with existing Pascal compilers for Mac OS:
*[[sAlign/de|$A and $ALIGN]] determines the alignment of data in records.
*[[sErrorc/de|$ERRORC]] returns an error message.
*[[sOv/de|$Q or $OV]] monitor overflow of integer variables.


==Lokale Compiler Direktiven nur für Compiler Mode MacPas==
==Symbols==
Diese Befehle werden aus Kompatibilität zum existierenden Mac OS Pascal Compiler unterstützt:
*[[sDefinec/de|$DEFINEC]] enables definition of own symbols.
*[[sAlign/de|$A und $ALIGN]] bestimmt die Datenausrichtung von Records
*[[sSetc/de|$SETC]] defines and assigns a symbol.
*[[sErrorc/de|$ERRORC]] gibt eine Fehlermeldung aus
*[[sUndefc/de|$UNDEFC]] undefines and unassigns a symbol.
*[[sOv/de|$Q oder $OV]] überwacht den Überlauf von Integervariablen
==Bedingte Compilierung==
*[[sElsec/de|$ELSEC]] ist eine Verzweigung der bedingten Compilierung
*[[sElifc/de|$ELIFC]] ist eine Verzweigung der bedingten Compilierung
*[[sEndc/de|$ENDC]] ist das Ende einer bedingten Compilierung
*[[sIfc/de|$IFC]] ist der Anfang einer bedingten Compilierung
==Symbole==
*[[sDefinec/de|$DEFINEC]] erlaubt die Definition eigener Symbole
*[[sSetc/de|$SETC]] definiert ein Symbol und weist ihm einen Wert zu
*[[sUndefc/de|$UNDEFC]] hebt die Definition eines Symbols auf




[[Category: Compiler directives]]
[[Category: Compiler directives]]

Revision as of 14:56, 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

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.

Self-defined compiler warnings, messages and hints

  • $ERROR display a self-defined error message.
  • $FATAL display a self-defined fatal error message.
  • $HINT displays a self-defined hint.
  • $HINTS enables self-defined hints.
  • $INFO display a self-defined information message.
  • $MESSAGE creates a self-defined information message.
  • $NOTE creates a self-defined note.
  • $NOTES enables the creation of self-defined notes.
  • $STOP display a self-defined fatal error message.
  • $WARNING creates a self-defined warning.
  • $WARNINGS enables self-defined warnings.

Local compiler direvtives for x86 processors only

  • $ASMMODE assembler mode.
  • $I386_XXX determines the assembler format.
  • $MMX enables optimizations for MMX processores.
  • $SATURATION Enables saturation (protection from memory-overflow) for MMX processores.
  • $MAXFPUREGISTERS determines the maximum number of floating-points registers to use.

Local compiler direvtives for Darwin-based operating systems only

Local compiler direvtives for MacPas mode only

The following directives are supported for compatibility with existing Pascal compilers for Mac OS:

Symbols

  • $DEFINEC enables definition of own symbols.
  • $SETC defines and assigns a symbol.
  • $UNDEFC undefines and unassigns a symbol.