PowerPC Linker > Output

Use this panel to specify the output settings for the PowerPC linker.

The following table lists and describes the output settings for PowerPC linker.

Table 1. Tool Settings - PowerPC Linker > Output
Option Description
Output Type User choose to build an application, a library, or a partial link project.
Optimize Partial Link Check to specify direct downloading of the partial link output. Clear if you want the output file to remain as if you passed the -r argument in the command line. This checkbox appears only if the Output Type drop-down list specifies Partial Link .
Deadstrip Unused Symbols Check to let the linker deadstrip all unused symbols. This reduces program size, by removing symbols that neither the main entry point or force-active entry points reference. Clear if you do not want the linker to deadstrip unused symbols. This checkbox appears only if the Optimize Partial Link is checked.
Require Resolved Symbols Check if the linker must resolve all symbols in the partial link and if your RTOS does not allow unresolved symbols. Clear if the linker does not have to resolve all symbols of the partial link. This checkbox appears only if the Optimize Partial Link is checked.
Heap Size (k) Specify kilobytes of RAM allocated for the heap, which your program uses if it calls malloc or new. Combined heap/stack allocation must not exceed available RAM. This checkbox appears only if the Output Type drop-down list specifies Application .
Stack Size (k) Specify kilobytes of RAM allocated for the stack. Combined heap/stack allocation must not exceed available RAM. This checkbox appears only if the Output Type drop-down list specifies Application .
Interpreter The linker to use an interpreter file.
Generate Link Map Check to let the linker generate a link map - showing every object/function definition and address, memory map of sections, and values of linker-generated symbols. Activates subordinate checkboxes. Clear if you do not want the linker to generate a map file. If you used a non-CodeWarrior compiler to build the relocatable file, the map file also lists unused but unstripped symbols. Map files have the extension .MAP
List Closure Check if you want the map file list all functions that the program starting point calls. Clear if you do not want the map file list functions that the program starting point calls. This checkbox is active only if the Generate Link Map checkbox is checked.
List Unused Objects Check if you want the map file to list unused objects; useful for revealing that objects you expected to be used are not. Clear if you do not want the map to list unused objects. This checkbox is active only if the Generate Link Map checkbox is checked.
List DWARF Objects Check if you want the list map lists all DWARF debugging objects in section area. Clear if you do not want the map file to list DWARF debugging objects. This checkbox is active only if the Generate Link Map checkbox is checked.
Generate Binary File Enbales you to generate one or more raw binary files. By default, no binary file is generated.
Generate S-Record File Check to generate an S3 S-record file, based on the application object image and activates the subordinate elements. Clear if you do not want to generate an S-record file. The name extension of the S-record file is .mot
Sort S-Record Check to sort generated S-record files in ascending address order. Clear if you do not want to sort the S-record files. This checkbox is active only if the Generate S-Record File checkbox is checked.
Max S-Record Length Specifies maximum S-record length (256 bytes or fewer) for the system. (For a non-CodeWarrior tool, you may need to reduce this value.) This checkbox is active only if the Generate S-Record File checkbox is checked.
EOL Character Specifies the end-of-line character for the S-record file:.
  • Mac - <cr>
  • DOS - <cr> <lf>
  • Unix - <lf>
This drop-down list is active only if the Generate S-Record File checkbox is checked.
Generate Warning Messages Check if you want the linker to generate warning messages.
Heap Address Specifies the memory location for program heap where you can enter the RAM address of the bottom of the heap.
Stack Address Specifies memory location for program stack where you can enter the RAM address for the top of the stack.
Generate ROM Image Check to enable the ROM Image Address and the RAM Buffer Address of ROM Image options.
ROM Image Address Specifies the flash ROM destination address for your binary.
RAM Buffer Address of ROM Image Specifies the RAM buffer address for the ROM image. This option is active only if a value is specified in the ROM Image Address textbox. For the CodeWarrior flash programmer, the ROM image address and the RAM buffer address must be the same.