1.2 Global directives

Global directives affect the whole of the compilation process. That is why they also have a command line counterpart. The command line counterpart is given for each of the directives. They must be specified before the unit or program clause in a source file, or they will have no effect.

  1.2.1 $APPID : Specify application ID.
  1.2.2 $APPNAME : Specify application name.
  1.2.3 $APPTYPE : Specify type of application.
  1.2.4 $CALLING : Default calling convention
  1.2.5 $CODEPAGE : Set the source codepage
  1.2.6 $COPYRIGHT specify copyright info
  1.2.7 $D or $DEBUGINFO : Debugging symbols
  1.2.8 $DESCRIPTION : Application description
  1.2.9 $E : Emulation of coprocessor
   Intel 80x86 version
   Motorola 680x0 version
  1.2.10 $FRAMEWORKPATH : Specify framework path.
  1.2.11 $G : Generate 80286 code
  1.2.12 $IMAGEBASE : Specify DLL image base location.
  1.2.13 $INCLUDEPATH : Specify include path.
  1.2.14 $L or $LOCALSYMBOLS : Local symbol information
  1.2.15 $LIBRARYPATH : Specify library path.
  1.2.16 $MAXSTACKSIZE : Set maximum stack size
  1.2.17 $M or $MEMORY : Memory sizes
  1.2.18 $MINSTACKSIZE : Set minimum stack size
  1.2.19 $MODE : Set compiler compatibility mode
  1.2.20 $MODESWITCH : Select mode features
  1.2.21 $N : Numeric processing
  1.2.22 $O : Level 2 Optimizations
  1.2.23 $OBJECTPATH : Specify object path.
  1.2.24 $P or $OPENSTRINGS : Use open strings
  1.2.25 $PASCALMAINNAME : Set entry point name
  1.2.26 $PIC : Generate PIC code or not
  1.2.27 $POINTERMATH : Allow use of pointer math
  1.2.28 $PROFILE : Profiling
  1.2.29 $S : Stack checking
  1.2.30 $SCREENNAME : Specify screen name
  1.2.31 $SETPEFLAGS : Specify PE Executable flags
  1.2.32 $SMARTLINK : Use smartlinking
  1.2.33 $SYSCALLS : Select system calling convention on Amiga/MorphOS
  1.2.34 $THREADNAME : Set thread name in Netware
  1.2.35 $UNITPATH : Specify unit path.
  1.2.36 $VARPROPSETTER : Enable use of var/out/const parameters for property setters.
  1.2.37 $VERSION : Specify DLL version.
  1.2.38 $WEAKPACKAGEUNIT : ignored
  1.2.39 $X or $EXTENDEDSYNTAX : Extended syntax
  1.2.40 $Y or $REFERENCEINFO : Insert Browser information