Setting Compiler Directives

You can use directives to control the way the Compiler behaves: what output it produces, what code is compiled and how the compiled code behaves when it runs. For normal operation you need only a few directives. Most of the time, you use the default values.

Note that setting some directives affects the default setting of other directives. For example, setting one directive might automatically unset another directive, and some directive settings are mutually exclusive.

You can set directives directly, by setting them for a project in the IDE, or if you are using the command line tools, by setting them on the command line, or as part of a response to a prompt. You can set directives by using the following:

The Compiler processes the directives in the following order, and if a directive is specified more than once, the Compiler uses the last setting:

  1. Directives set in project properties
  2. System-wide directives file
  3. $SET statements in the source code
  4. User directives file