RS08 Compiler > Preprocessor

Use this panel to specify preprocessor behavior and define macros.

The following figure shows the Preprocessor panel.

Figure 1. Tool Settings - RS08 Compiler > Preprocessor
Tool Settings - RS08 Compiler > Preprocessor

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

Table 1. Tool Settings - RS08 Compiler > Preprocessor Options
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 that 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 2. Tool Settings - RS08 Compiler > Preprocessor - Enter Value Dialog Box
Tool Settings - RS08 Compiler > Preprocessor - Enter Value Dialog Box

The following figure shows the Edit Dialog dialog box.

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

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