User manual

UM0036 Project creation and build
Doc ID 7705 Rev 11 153/385
Configuring the Metrowerks linker PRM file
The Linker PRM file tab provides an interface for selecting the linker’s parameter file (PRM)
or defining one automatically. Access this view by selecting Linker PRM File in the
Category list box. The view will change to that shown in Figure 102.
Figure 102. Metrowerks linker PRM view
From this interface you can identify a parameter file to use during linking or use the Auto
option to generate a parameter file according to the settings in the mapping table.
Table 55. Metrowerks linker output options
Option
(1)
1. For complete descriptions of optimization options, refer to the SmartLinker user manual from Metrowerks.
Description
Link as ROM Library
(-AsROMlib)
The output objects are burned to ROM memory. Using this
option is equivalent to specifying “AS ROM_LIB“ in the
parameter file.
Generate both S record and ABS
file (-B -EnvSRECORD=s19)
Results in the creation of an ABS file and an S record. By
default the name for the S record is <filename>.sx.
Generate Fixups in ABS file
(-SFixups)
Used in generation of ELF files only. This option is not
compatible with debugging.
Generate Map file
(-M)
Generates a map file at the end of a successful link session.
This option is the equivalent to using MAPFILE ALL in the
parameter file.
Generate a Statistics file
(-StatF=statistic.txt)
Generates listing of attributes of each allocated object in text
file. The default file name is statistic.txt.
Create an error file (err.log)
(-WErrFileOn)
Creates an error log called err.log.
Create an Error Listing file
(ERRORFILE)
(-WOutFileOn))
Creates an error listing file called ERRORFILE.