User manual

UM0036 Project creation and build
Doc ID 7705 Rev 11 151/385
Customizing Metrowerks linker optimization settings
To further customize optimizations, select Customize from the Optimizations list box. The
view in the Linker tab changes to that shown in Figure 100.
Figure 100. Metrowerks linker optimizations view
In this view, you can choose from the optimization options listed in Tabl e 54.
Table 54. Metrowerks linker optimization options
Option
(1)
Description
Always use next segment
(-AllocNext)
Used in generation of ELF files only. Method that
allocates objects in the order presented.
Always check for free Previous Segment
(-AllocFirst)
Used in generation of ELF files only. Method that
checks if a partially filled segment will accommodate
the object. Allocation does not respect the order of
objects.
Check for free Previous Segment when
Current Full (-AllocChange)
Used in generation of ELF files only. Method that
allocates an object to the first available segment that
is large enough to accommodate it.
Overlap Constant Data
(-COCC=D)
Used in generation of ELF files only. This option sets
the default for optimization to data.
Overlap Code in ROM
(-COCC=C)
Used in generation of ELF files only. This option sets
the default for optimization to code.
Enable Distribution Optimization
(-Dist)
Used in generation of ELF files only. Causes the linker
to generate a file with the optimized distribution.
Priority is to fill the bank
(-DistOptiFillBanks)
Used in generation of ELF files only. Minimizes the
free space in every bank.