Delphi Compiler Directives (List) Index

From RAD Studio
Jump to: navigation, search

Go Up to Delphi Language Reference

The following topic lists the RAD Studio compiler directives.


Overview

Compiler Directives

Delphi Compiler Directive Associated Symbol Scope

Align fields (Delphi)

{$A},{$ALIGN}

Local

ALLOWBIND

{$ALLOWBIND}

Global

ALLOWISOLATION

{$ALLOWISOLATION}

Global

Application type (Delphi)

{$APPTYPE}

Global

Assert directives (Delphi)

{$C},{$ASSERTIONS}

Local

Boolean short-circuit evaluation (Delphi compiler directive)

{$B},{$BOOLEVAL}

Local

Code align (Delphi)

{$CODEALIGN}

Local

Compiler directives for libraries or shared objects (Delphi)

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

Global

Conditional compilation (Delphi)

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

Local

Data Execution Prevention compatible

{$NXCOMPAT}

Global

Debug information (Delphi)

{$D},{$DEBUGINFO}

Global

DEFINE directive (Delphi)

{$DEFINE}

Local

DENYPACKAGEUNIT directive (Delphi)

{$DENYPACKAGEUNIT}

Local

Description (Delphi)

{$D},{$DESCRIPTION}

Global

DESIGNONLY directive (Delphi)

{$DESIGNONLY}

Local

Dynamic base (Delphi)

{$DYNAMICBASE}

Local

ELSE (Delphi)

{$ELSE}

Local

ELSEIF (Delphi)

{$ELSEIF}

Local

Enable Large Addresses

{$LARGEADDRESSAWARE}

Global

ENDIF directive (Delphi)

{$ENDIF}

Local

Executable extension (Delphi)

{$E},{$EXTENSION}

Global

Export symbols (Delphi)

{$ObjExportAll}

Global

Extended syntax (Delphi)

{$X},{$EXTENDEDSYNTAX}

Global

Extended type compatibility (Delphi)

{$EXTENDEDCOMPATIBILITY}

Local

External Symbols (Delphi)

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

Local

Floating point precision control (Delphi for x64)

{$EXCESSPRECISION}

Local

HIGHCHARUNICODE directive (Delphi)

{$HIGHCHARUNICODE}

Local

Hints (Delphi)

{$HINTS}

Local

HPP emit (Delphi)

{$HPPEMIT}

Local

IFDEF directive (Delphi)

{$IFDEF}

Local

IF directive (Delphi)

{$IF}

Local

IFEND directive (Delphi)

{$IFEND}

Local

IFNDEF directive (Delphi)

{$IFNDEF}

Local

IFOPT directive (Delphi)

{$IFOPT}

Local

Image base address

{$IMAGEBASE}

Global

Implicit Build (Delphi)

{$IMPLICITBUILD}

Global

Imported data

{$G},{$IMPORTEDDATA}

Local

Include file (Delphi)

{$I},{$INCLUDE}

Local

Input output checking (Delphi)

{$I},{$IOCHECKS}

Local

Legacy IFEND (Delphi)

{$LEGACYIFEND}

Local

Link object file (Delphi)

{$L file},{$LINK file}

Local

Local symbol information (Delphi)

{$L+},{$LOCALSYMBOLS}

Global

Long strings (Delphi)

{$H},{$LONGSTRINGS}

Local

Memory allocation sizes (Delphi)

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

Global

MESSAGE directive (Delphi)

{$MESSAGE}

Local

METHODINFO directive (Delphi)

{$METHODINFO}

Local

Minimum enumeration size (Delphi)

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

Local

NODEFINE directive (Delphi)

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

Local

NOINCLUDE (Delphi)

{$NOINCLUDE}

Local

OBJTYPENAME directive (Delphi)

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

Global

Old type layout (Delphi)

{$OLDTYPELAYOUT ON}

Local

Open String Parameters (Delphi)

{$P},{$OPENSTRINGS}

Local

Optimization (Delphi)

{$O},{$OPTIMIZATION}

Local

Note: Scope is global for DCCIOSARM64 compiler.

Overflow checking (Delphi)

{$Q},{$OVERFLOWCHECKS}

Local

PE (portable executable) header flags (Delphi)

{$SetPEFlags},{$SetPEOptFlags}

Local

PE header operating system version

{$SETPEOSVERSION}

Local

PE header subsystem version

{$SETPESUBSYSVERSION}

Local

PE header user version

{$SETPEUSERVERSION}

Local

Pentium-safe FDIV operations (Delphi)

{$U},{$SAFEDIVIDE}

Local

Pointer Math (Delphi)

{$POINTERMATH}

Local

Range checking

{$R},{$RANGECHECKS}

Local

Real48 compatibility (Delphi)

{$REALCOMPATIBILITY}

Local

Regions

{$REGION},{$ENDREGION}

Local

Reserved address space for resources (Delphi, Linux)

{$M},{$RESOURCERESERVE}

Global

Resource file (Delphi)

{$R},{$RESOURCE}

Local

RTTI directive (Delphi)

{$RTTI INHERIT|EXPLICIT}

Local

RUNONLY directive (Delphi)

{$RUNONLY}

Local

Run-Time Type Information (Delphi)

{$M},{$TYPEINFO}

Local

Scoped Enums (Delphi)

{$SCOPEDENUMS}

Local

Stack frames (Delphi)

{$W},{$STACKFRAMES}

Local

Strong link types (Delphi)

{$STRONGLINKTYPES}

Global

Support high-entropy 64-bit ASLR

{$HIGHENTROPYVA}

Global

Symbol declaration and cross-reference information (Delphi)

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

Global

Terminal Server Aware

{$TSAWARE}

Global

TEXTBLOCK

{$TEXTBLOCK}

Local

Type-checked pointers (Delphi)

{$T},{$TYPEDADDRESS}

Global

UNDEF directive (Delphi)

{$UNDEF}

Local

Var-string checking (Delphi)

{$V},{$VARSTRINGCHECKS}

Local

Warning messages (Delphi)

{$WARN}

Local

Warnings (Delphi)

{$WARNINGS}

Local

Weak packaging

{$WEAKPACKAGEUNIT}

Local

WEAKLINKRTTI directive (Delphi)

{$WEAKLINKRTTI}

Local

Writeable typed constants (Delphi)

{$J},{$WRITEABLECONST}

Local

Zero-based strings (Delphi)

{$ZEROBASEDSTRINGS}

Local

See Also