HCS08 Compiler > Preprocessor

Use this panel to specify preprocessor behavior. You can specify the file paths and define macros.

The following figure shows the Preprocessor panel.

Figure 1. Tool Settings - HCS08 Compiler > Preprocessor

Tool Settings - HCS08 Compiler > Preprocessor

The following table lists the Preprocessor panel options for HC(S)08 Compiler.

Table 1. Tool Settings - HCS08 Compiler > Preprocessor Options
Option Description
Define preprocessor macros ( -D) Defines, deletes, or rearranges the preprocessor macros. You can specify multiple macros and change the order in which the IDE uses the macros. Defines the preprocessor macros and optionally assign their values. This setting is equivalent to specifying the -D name[=value] command-line option. To assign a value, use the equal sign (=) with no white space. For example, this syntax defines a preprocessor value named EXTENDED_FEATURE and assigns ON as its value: EXTENDED_FEATURE=ONNote: If you do not assign a value to the macro, the shell assigns a default value of 1.

The following table lists and describes the toolbar buttons that help work with preprocessor macro definitions.

Table 2. Define Preprocessor Macros Toolbar Buttons
Button Description
Add - Click to open the Enter Value dialog box and specify the path/macro.
Delete - Click to delete the selected path/macro.
Edit - Click to open the Edit Dialog dialog box and update the selected path/macro.
Move up - Click to move the selected path/macro one position higher in the list.
Move down - Click to move the selected path/macro one position lower in the list.

The following figure shows the Enter Value dialog box.

Figure 2. Tool Settings - HCS08 Compiler > Preprocessor - Enter Value Dialog Box

Tool Settings - HCS08 Compiler > Preprocessor - Enter Value Dialog Box

The following figure shows the Edit Dialog dialog box.

Figure 3. Tool Settings - HCS08 Compiler > Preprocessor - Edit Dialog Box

Tool Settings - HCS08 Compiler > Preprocessor - Edit Dialog Box

The buttons in the Enter Value and Edit Dialog dialog boxes help work with the preprocessor macros.