Sign in Join
FPDoc Onlineexperiment

Compiler modes

Here we list the exact effect of the different compiler modes. They can be set with the $Mode switch, or by command line switches.

  1. FPC modeThis mode is selected by the $MODE FPC switch. On the command line, this means that you use none of the other compatibility mode switches. It is the default mod
  2. TP modeThis mode is selected by the $MODE TP switch. It tries to emulate, as closely as possible, the behavior of Turbo Pascal 7. On the command line, this mode is sel
  3. Delphi modeThis mode is selected by the $MODE DELPHI switch. It tries to emulate, as closely as possible, the behavior of Delphi 4 till recent versions of Delphi . On the
  4. DelphiUnicode modeThis mode is selected by the $MODE DELPHIUNICODE switch. It tries to emulate, as closely as possible, the behavior of Delphi 4 till recent versions of Delphi .
  5. OBJFPC modeThis mode is selected by the $MODE OBJFPC switch. On the command line, this mode is selected by the -Mobjfpc switch. Exceptions, classes and Interfaces are enab
  6. MACPAS modeThis mode is selected by the $MODE MACPAS switch. On the command line, this mode is selected by the -Mmacpas switch. It mainly switches on some extra features:
  7. ISO modeThis mode is selected by the $MODE ISO switch. On the command line, this mode is selected by the -Miso switch. In this mode, the compiler complies with the requ
  8. Extended Pascal modeThis mode is selected by the $MODE EXTENDEDPASCAL switch. It tries to emulate, as closely as possible, the behavior of extended pascal. This is basically the sa

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.