User manual

UM0036 Project creation and build
Doc ID 7705 Rev 11 107/385
4.7.2 Cosmic C Assembler tab
The Assembler tab (see Figure 72) provides an interface for setting the options in the
command line for the Cosmic C assembler (cast7). The gray Command line field displays
all the changes to the command line as you make them.
Figure 72. Cosmic Assembler general view
Table 37. Cosmic C compiler output options
Option
(1)
1. For complete descriptions of compiler optimizations, refer to the C Cross Compiler User’s Guide.
Description
Far Library Calls (-gfl)
(STM8 only)
Adds -g to the command line to invoke the code generator
with the fl option, which uses callf instructions for
machine library calls. This is used in conjunction with memory
models for large applications. This option is not available with
the ST7 C compiler versions under 4.4.
Handle Comparison Overflow
(+scov)
(ST7 only)
Adds +scov option, which allows production of code for
signed integer comparisons handling overflow situations. This
increases overall code size. This option is not available with the
ST7 C compiler versions under 4.4.
Functions do not cross section
(-gnc)
(STM8 only)
Specifies that functions must remain within the same 64Kbyte
section.