[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Code-Generation Settings

The following panels customize the way the IDE generates code:


Global Optimizations

The Global Optimizations panel, shown in Figure 9.17, configures the way the compiler rearranges its object code. You can set up the compiler to produce smaller and faster-executing object code. Some optimizations remove redundant program operations, while other optimizations analyze an item's use in the program. The optimizations seek to improve your program's performance.

All optimizations rearrange object code without affecting the object code's logical execution sequence. In other words, an unoptimized program and its optimized counterpart produce the same results.


NOTE

Use compiler optimizations only after you finish debugging your program. Using a debugger on an optimized program might affect the debugger's ability to view source code.

To find specific information on how these settings apply to a build target, see "Targeting Documentation".

Global Optimizations Settings Panel:

Optimize For

Use these options to configure how the CodeWarrior IDE optimizes your code:


Faster Execution Speed

This option improves the execution speed of object code. Object code is faster, but can be larger.


Smaller Code Size

This option reduces the size of object code produced by the compiler. Object code is smaller, but can be slower.


Optimization Level Slider

Use the slider to determine the optimizations that are applied to your code. You can choose to disable code optimizations entirely, or you can choose to apply different levels of optimizations. The higher the level you select, the more optimizations the IDE applies to your code.


Details

The Details field, below the Optimization Level Slider, lists the optimizations applied to the project. The following list describes each optimization:


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000