User manual

Project creation and build UM0036
120/385 Doc ID 7705 Rev 11
When the category is set to General, the standard optimization options are:
Default optimization: The following optimizations are employed by default and cannot
be disabled:
Expressions are reduced to constants whenever possible
Internal data and bit access optimization
Jump optimization
Speed optimization: When you select this option, the category displayed changes to
Optimizations. A list of options for speed optimization is displayed. For further
information, refer to Customizing Raisonance C compiler optimizations on page 121.
Size optimization: When you select this option, the category displayed changes to
Optimizations. A list of options for size optimization is displayed. For further
information, refer to Customizing Raisonance C compiler optimizations on page 121.
Global variables
When the category is set to General, you can use the Global Variables list box to specify
the default location of global variables:
In Zero Page: This is the default option.
In Data: Specifies to place global variables in the first 64Kbytes of memory.
Locals and parameters (disabled for STM8 microcontrollers)
When the category is set to General, the options available for the location of local variables
and parameters are:
In Zero Page: This is the default option.
In Data: Specifies to place local variables in the first 64Kbytes of memory.
On Stack (reentrant Fct): Specifies to place local variables on stack if you want
functions to be reentrant. For more information, see the definition of the AUTO mode in
the Raisonance RCST7 Compiler Manual.
Generate debug info
Select the Generate Debug Info checkbox if you want the compiler to output debug
information.
User-defined options
The User Defined Options field allows you to enter the command for an option that you
have defined for the Raisonance C compiler. The options that you type in this field are
immediately added to the command line below. For information on creating user-defined
options, refer to the Raisonance RCST7 Compiler Manual.
Program model (STM8 only)
When the category is set to General, the Program Model field offers the following options:
STM8 small model: specifies to generate small model code. Should be used for
projects where all the code fits in the zero section, that is, where all functions calls are
limited to a 16Kbyte address range.
STM8 large model: specifies to generate large model code. Should be used for
projects with code above the zero section, with functions located within the 16MB
memory address range.