size Optimization Option

Syntax: Default:
opt(size[, yes])
opt(size, no)
opt(size, no)

This option determines whether code is optimized for size in preference to speed.   Use this option to reduce the amount of space occupied by your executable code.   This option is enabled when opt(level,level) is set to a level greater than 0.

By default, no optimization is performed.

Specifying opt(size, yes) causes VisualAge C++ to select size optimizations over speed optimizations whenever they conflict.

Programs optimized for size usually run faster than if they had not been optimized, but they may not be as fast as when built with opt(size, no). However, optimizing for size can reduce the overhead of paging in larger applications, and a program may run faster when it is optimized for size than when it is optimized for speed alone.  Optimizing for size can also sometimes improve cache locality.



Incremental C++ Build
C Compilation
Configuration Files


Set Build Options
Build
Optimize your Application


Optimization Options
Optimization Options