Compiler Options

This chapter describes the arguments that modify how the compiler reads source files, processes them, and outputs object code. It consists of the following major sections:

The Compiler provides a number of options that control its operation. Options consist of a minus sign or dash ( - ) prefix, followed by one or more letters or digits. The Compiler treats anything lacking the prefix as a source file to compile. You can specify Compiler options on the command line or in the COMPOPTIONS variable. Specify each Compiler option only once per compilation.

Command line options are not case-sensitive, for example, "- Li" is the same as "-li".

Note: It is not possible to combine options from different groups. For example, "- Cc - Li" cannot be abbreviated by the terms "- Cci" or "- CcLi".

You can also use the GUI to set the Compiler options, as shown in the following figure.

Note: If you use the GUI to set the Compiler options, do not use the COMPOPTIONS environment variable. The Compiler stores the options in the project.ini file, not in the default.env file.
Figure 1. HC08 Compiler Option Settings Dialog Box

HC08 Compiler Option Settings Dialog Box

Use the Message Settings dialog box, shown in the following figure, to move messages ( -Wmsg options).

Figure 2. Message Settings Dialog Box

Message Settings Dialog Box