Delphi Compiler Directives (List) Index

From RAD Studio

Go Up to Delphi Language Reference

The following topic lists the RAD Studio compiler directives.


Overview

Compiler Directives

Delphi Compiler Directive Associated Symbol

Align fields (Delphi)

{$A},{$ALIGN}

Application type (Delphi)

{$APPTYPE}

Assert directives (Delphi)

{$C},{$ASSERTIONS}

Boolean short-circuit evaluation (Delphi compiler directive)

{$B},{$BOOLEVAL}

Code align (Delphi)

{$CODEALIGN}

Conditional compilation (Delphi)

{$IFDEF}, {$IFNDEF}, {$IF}, {$ELSEIF}, {$ELSE}, {$ENDIF}, {$IFEND}

Debug information (Delphi)

{$D},{$DEBUGINFO}

DEFINE directive (Delphi)

{$DEFINE}

DENYPACKAGEUNIT directive (Delphi)

{$DENYPACKAGEUNIT}

Description (Delphi)

{$D},{$DESCRIPTION}

DESIGNONLY directive (Delphi)

{$DESIGNONLY}

ELSE (Delphi)

{$ELSE}

ELSEIF (Delphi)

{$ELSEIF}

ENDIF directive (Delphi)

{$ENDIF}

Executable extension (Delphi)

{$E},{$EXTENSION}

Export symbols (Delphi)

{$ObjExportAll}

Extended syntax (Delphi)

{$X},{$EXTENDEDSYNTAX}

Extended type compatibility (Delphi)

{$EXTENDEDCOMPATIBILITY}

External Symbols (Delphi)

{$EXTERNALSYM [ 'typeNameInHpp' [ 'typeNameInHppUnion' ]]}

Floating point precision control (Delphi for x64)

{$EXCESSPRECISION}

HIGHCHARUNICODE directive (Delphi)

{$HIGHCHARUNICODE}

Hints (Delphi)

{$HINTS}

HPP emit (Delphi)

{$HPPEMIT}

IFDEF directive (Delphi)

{$IFDEF}

IF directive (Delphi)

{$IF}

IFEND directive (Delphi)

{$IFEND}

IFNDEF directive (Delphi)

{$IFNDEF}

IFOPT directive (Delphi)

{$IFOPT}

Image base address

{$IMAGEBASE}

Implicit Build (Delphi)

{$IMPLICITBUILD}

Imported data

{$G},{$IMPORTEDDATA}

Include file (Delphi)

{$I},{$INCLUDE}

Input output checking (Delphi)

{$I},{$IOCHECKS}

Compiler directives for libraries or shared objects (Delphi)

{$LIBPREFIX}, {$LIBSUFFIX}, {$LIBVERSION}

Legacy IFEND (Delphi)

{$LEGACYIFEND}

Link object file (Delphi)

{$L file},{$LINK file}

Local symbol information (Delphi)

{$L+},{$LOCALSYMBOLS}

Long strings (Delphi)

{$H},{$LONGSTRINGS}

Memory allocation sizes (Delphi)

{$M},{$MINSTACKSIZE},{$MAXSTACKSIZE}

MESSAGE directive (Delphi)

{$MESSAGE }

METHODINFO directive (Delphi)

{$METHODINFO}

Minimum enumeration size (Delphi)

{$Z1},{$Z2},{$Z4},{$MINENUMSIZE 1},{$MINENUMSIZE 2},{$MINENUMSIZE 4}

NODEFINE directive (Delphi)

{$NODEFINE [ 'typeNameInHpp' [ 'typeNameInHppUnion' ]]}

NOINCLUDE (Delphi)

{$NOINCLUDE}

OBJTYPENAME directive (Delphi)

{$OBJTYPENAME typeIdent ['{B|N}typeNameInObj']}

Old type layout (Delphi)

{$OLDTYPELAYOUT ON}

Open String Parameters (Delphi)

{$P},{$OPENSTRINGS}

Optimization (Delphi)

{$O},{$OPTIMIZATION}

Overflow checking (Delphi)

{$Q},{$OVERFLOWCHECKS}

PE (portable executable) header flags (Delphi)

{$SetPEFlags},{$SetPEOptFlags}

PE header operating system version

{$SETPEOSVERSION}

PE header subsystem version

{$SETPESUBSYSVERSION}

PE header user version

{$SETPEUSERVERSION}

Pentium-safe FDIV operations (Delphi)

{$U},{$SAFEDIVIDE}

Pointer Math (Delphi)

{$POINTERMATH}

Range checking

{$R},{$RANGECHECKS}

Real48 compatibility (Delphi)

{$REALCOMPATIBILITY}

Regions

{$REGION},{$ENDREGION}

Reserved address space for resources (Delphi, Linux)

{$M},{$RESOURCERESERVE}

Resource file (Delphi)

{$R},{$RESOURCE}

RTTI directive (Delphi)

{$RTTI INHERIT|EXPLICIT}

RUNONLY directive (Delphi)

{$RUNONLY}

Run-Time Type Information (Delphi)

{$M},{$TYPEINFO}

Scoped Enums (Delphi)

{$SCOPEDENUMS}

Stack frames (Delphi)

{$W},{$STACKFRAMES}

Strong link types (Delphi)

{$STRONGLINKTYPES}

Symbol declaration and cross-reference information (Delphi)

{$Y},{$REFERENCEINFO},{DEFINITIONINFO}

Type-checked pointers (Delphi)

{$T},{$TYPEDADDRESS}

UNDEF directive (Delphi)

{$UNDEF}

Var-string checking (Delphi)

{$V},{$VARSTRINGCHECKS}

Warning messages (Delphi)

{$WARN}

Warnings (Delphi)

{$WARNINGS}

Weak packaging

{$WEAKPACKAGEUNIT}

WEAKLINKRTTI directive (Delphi)

{$WEAKLINKRTTI}

Writeable typed constants (Delphi)

{$J},{$WRITEABLECONST}

Zero-based strings (Delphi)

{$ZEROBASEDSTRINGS}

See Also