RAD Studio (Common)
ContentsIndex
PreviousUpNext
C++ Compiler Optimizations

ProjectOptionsC++ CompilerOptimizations 

Use this dialog box to set C++ Compiler Optimization options.

Build Configuration option 
Description 
Build Configuration 
Displays the active build configuration. Use the drop-down menu to select another build configuration.  
Save As... 
Displays the Save As dialog box to save the current configuration's options to a file that can be loaded as a named option set.  
Load... 
Displays the Apply Option Set dialog box to apply the options in a named option set to the current configuration.  

 

Optimizations options 
Description 
None (-Od)* 
Disables all optimization settings, including ones which you may have specifically set and those that would normally be performed as part of the speed/size trade-off.
Because this disables code compaction (tail merging) and cross-jump optimizations, using this option can keep the debugger from jumping around or returning from a function without warning, which makes stepping through code easier to follow.
This is the default.  
Size (-O1) 
Sets an aggregate of optimization options that tells the compiler to optimize your code for size. For example, the compiler scans the generated code for duplicate sequences. When such sequences warrant, the optimizer replaces one sequence of code with a jump to the other and eliminates the first piece of code. This occurs most often with switch statements. The compiler optimizes for size by choosing the smallest code sequence possible.  
Speed (-O2) 
This switch sets an aggregate of optimization options that tells the compiler to optimize your code for speed.  
Selected 
Chooses specific optimizations to enable.
Click Select All to enable all optimizations in the list.
Click Clear All to clear all selected optimizations in the list
Click Defaults to enable the default optimizations in the list  

 

General option 
Description 
Default 
Saves the current settings as the default for each new project.  
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!