User manual
UM0036 Project creation and build
Doc ID 7705 Rev 11 105/385
Customizing Cosmic C compiler preprocessor definitions
When the Category list box is set to Preprocessor, the view in the tab changes to that
shown in Figure 69. In addition to adding preprocessor commands (-d), this view allows you
to add include directories (-i).
Figure 69. Cosmic C compiler preprocessor view
When entering a Preprocessor definition (-d), you specify the name of a user-defined
preprocessor symbol. The form of the definition is:
-dsymbol[=value]
If the value is omitted, it is set to 1.
When entering definitions, the -d is automatically added to the command line as you type
the symbol. When you enter several definitions, separate them with a space and -d will
automatically be added to the next symbol in the command line. The compiler allows you to
specify up to 60 definitions.
The Additional include directories (-i) allows you to specify the paths for other
directories that you want to include when compiling. You can either type the path name or
use the browse button to locate the directory.
When you type the path name for the directory, -i is automatically added to the command
line. Each path name is the name of a directory and is not ended with a directory separator
(\). When you enter several path names, separate them with a semicolon (;) and -i is added
automatically to the next entry.
Customizing Cosmic C compiler input options
When the Category list box is set to Input, the view in the tab changes to that shown in
Figure 70. It allows to specify how input files are to be treated during compilation. This view
is not available with the ST7 C compiler versions under 4.4.