HCS08 Compiler > Preprocessor

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

The following table lists and describes the preprocessor options for HCS08 Compiler.

Table 1. Tool Settings - HCS08 Compiler > Preprocessor Option
Option Description
Define preprocessor macros (-D) Define, delete, or rearrange preprocessor macros. You can specify multiple macros and change the order in which the IDE uses the macros. Define 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=ON Note: 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. To confirm deletion, click Yes in the Confirm Delete dialog box.
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 1. 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 2. 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 boxes help work with the preprocessor macros.