User manual

UM0036 Project creation and build
Doc ID 7705 Rev 11 141/385
In addition, this view includes an Encryption field that allows you to enable and disable
encryption and set a key number for the encryption.
Checking the Encrypt Source File checkbox introduces the -Eencrypt option to the
command line, which causes the compiler to encrypt the source file using a key code that
you enter. The default name for the encrypted file is filename.file extensione (for example,
the encrypted file for application.c is application.ce).
To enter a key code for encryption, type the number in the Key Number field. Only numeric
characters are accepted. If you enter a non-numeric character in the Key Number field,
STVD prompts you with a warning. The -EKey option and the number you entered are
automatically added to the command line. 0 is the default if you do not enter a key code.
However, using this default is not recommended.
Customizing Metrowerks C compiler listings
If you choose Customize in the Listings list box, the tab view changes as shown in
Figure 94. The same tab view is displayed if you choose Listing directly from the Category
list box.
Table 50. Metrowerks C compiler output options
Option
(1)
1. For complete descriptions of optimization options, refer to the STMicroelectronics ST7 Compiler user
manual from Metrowerks.
Description
Strip Path Info from Object Files
(-NoPath)
This option suppresses the generation of path information in
the object files.
ELF/Dwarf 2.0 Object File Format
(-F2)
Adds the -F2 option to the command line, which causes the
compiler to generate object files in ELF/Dwarf 2.0 format.
When not checked the compiler generates object files in
Hiware object file format (-Fh option in the command line). If
you change the output setting to Hiware, STVD warns you that
you must specify the PRM file to use in the Linker PRM File
settings of the Linker tab (see Configuring the Metrowerks
linker PRM file on page 153).
Allocate Constant Objects into
ROM
(-Cc)
This option causes any variables defined as const to be
assigned to a ROM section in the linker PRM file.
Stop after Preprocessor
(-LpX)
This option limits compiling to preprocessing so that no object
file is generated. Used with -Lp to generate a listing file (see
Customizing Metrowerks C compiler listings).