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}

ALLOWBIND

{$ALLOWBIND}

ALLOWISOLATION

{$ALLOWISOLATION}

Application type (Delphi)

{$APPTYPE}

Assert directives (Delphi)

{$C},{$ASSERTIONS}

Boolean short-circuit evaluation (Delphi compiler directive)

{$B},{$BOOLEVAL}

Code align (Delphi)

{$CODEALIGN}

Compiler directives for libraries or shared objects (Delphi)

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

Conditional compilation (Delphi)

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

Data Execution Prevention compatible

{$NXCOMPAT}

Debug information (Delphi)

{$D},{$DEBUGINFO}

DEFINE directive (Delphi)

{$DEFINE}

DENYPACKAGEUNIT directive (Delphi)

{$DENYPACKAGEUNIT}

Description (Delphi)

{$D},{$DESCRIPTION}

DESIGNONLY directive (Delphi)

{$DESIGNONLY}

Dynamic base (Delphi)

{$DYNAMICBASE}

ELSE (Delphi)

{$ELSE}

ELSEIF (Delphi)

{$ELSEIF}

Enable Large Addresses

{$LARGEADDRESSAWARE}

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}

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}

Support high-entropy 64-bit ASLR

{$HIGHENTROPYVA}

Symbol declaration and cross-reference information (Delphi)

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

Terminal Server Aware

{$TSAWARE}

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