Difference between revisions of "local compiler directives"

From Free Pascal wiki
Jump to navigationJump to search
(Next paragraph translated.)
(Unnecessary hint removed.)
Line 60: Line 60:
 
*[[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:''
 
  
 
==Self-defined compiler warnings, messages and hints==
 
==Self-defined compiler warnings, messages and hints==

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

The following text is still to be translated to English:

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

Lokale Compiler Direktiven nur für Compiler Mode MacPas

Diese Befehle werden aus Kompatibilität zum existierenden Mac OS Pascal Compiler unterstützt:

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

Symbole

  • $DEFINEC erlaubt die Definition eigener Symbole
  • $SETC definiert ein Symbol und weist ihm einen Wert zu
  • $UNDEFC hebt die Definition eines Symbols auf