User manual
Project creation and build UM0036
104/385 Doc ID 7705 Rev 11
Customizing Cosmic C compiler listings
To customize compiler listings, select Customize in the Listings list box. Alternatively, from
the Category list box, select Listings. The tab view changes as shown in Figure 68.
Figure 68. Cosmic C compiler listing view
In this tab view, you choose from the listing options described in Tabl e 36.
Interpret Plain char as Type
unsigned char (-pu)
Take a plain char to be of type unsigned char, not signed char.
This also affects strings constants.
Authorize Constant and Volatile
Repetition (-pc99)
Adds the -pc99 option to the command line, which enables the
repetition of the const and volatile modifiers in the declaration
either directly or indirectly in the typedef. This option is not
available with the ST7 C compiler versions under 4.4.
1. For complete descriptions of compiler C language options, refer to the C Cross Compiler User’s Guide.
Table 35. Cosmic C compiler language options (continued)
Option
(1)
Description
Table 36. Cosmic C compiler listing options
Option
(1)
1. For complete descriptions of compiler listing options, refer to the C Cross Compiler User’s Guide.
Description
Verbose: print all commands in
Output Window (-v)
Each function name is sent to STDERR when cgst7 starts
processing it.
Generate Listing File with C++
and Assembly (-l)
Merge C source listing with assembly language code. The
default listing output is application.ls.
Log errors in file (-e)
Log errors from parser in a file instead of displaying them on
the terminal screen. The name of the error file is
source_file.err. It is created only if there are errors.