User manual

UM0036 Project creation and build
Doc ID 7705 Rev 11 119/385
General settings for the Raisonance toolset
With the category set to General, you can access the following standard settings and
options, as shown in Figure 79:
C language
Listings
Optimizations
Global variables
Locals and parameters (disabled for STM8 microcontrollers)
Generate debug info
User-defined options
Program model (STM8 only)
C language
The C language settings allow you to define the programming language styles to apply while
compiling the application.
When the category is set to General, the standard C language options are:
Default: Compiler default language options.
ANSI mode restricted: Adds the MODANSI option in the command line, which enforces
strict ANSI checking by rejecting any syntax or semantic extension.
Customize: Allows you to choose the options you want for generation of debug
information. These options are summarized in Customizing Raisonance C compiler
language settings on page 122.
Listings
The Listing settings allow you to generate a listing file and log errors to a file.
When the category is set to General, the standard Listing options are:
None: Adds the NOPR option to the command line so no listing is generated.
Default listing: automatically selects the following options:
“Show the assembler translation of C statements in the listings file”
“Add the list of symbols generated from the source file”
Preprocessor listing: automatically selects the option “Generate a preprocessor
listing file”.
Customize: When you select this option, the category displayed changes to Listings.
This view allows you to choose the options that you want for generation of debug
information. These options are described in Customizing Raisonance C compiler
listings on page 123.
Optimizations
The Optimization settings allow you to optimize your code once you have finished
debugging your application, in order to make the final version more compact and faster. You
should not optimize your code when debugging because some optimizations will eliminate
or ignore the debug information required by STVD and your debug instrument.