Everything

-size


< Compile Options / Optimize Options >

[Format]

-size

 

-

[Default]

Optimization is with emphasis on size.

[Description]

-

When the size option is specified, optimization will be performed with emphasis on code size.

[Remarks]

-

When the size option is specified, the following options are automatically specified based on the optimize option specification. Note however that if one of the following options is specified otherwise explicitly, that specified option becomes valid.

-

The processing for optimization in response to the optimization level selected for the optimize option includes the fine adjustment of many items other than those that can be specified through compiler options. Code produced with different levels of optimization will differ in the ways set by the compiler options listed in the tables below, but will also not match in other ways.

 

Optimization item

optimize=0

optimize=1

optimize=2

optimize=max

Loop Expansion

loop=1

loop=1

loop=1

Inline Expansion

noinline

noinline

inline=0

Converting Constant Division into Multiplication

noconst_div

noconst_div

noconst_div

Scheduling Instructions

noschedule

schedule

schedule

Constant Propagation of const Qualified Variables

noconst_copy

const_copy

const_copy

Dividing Optimizing Ranges

scope

scope

noscope

Optimizing External Variable Accesses

nomap

nomap

map*

nomap*

Optimization Considering the Type of the Data Indicated by the Pointer

alias=noansi

alias=noansi

alias=ansi

Optimization by Reducing the Branch Instruction Size

nobranch_chaining

branch_chaining

branch_chaining

Note

The default is map when a C/C++ source program has been specified for input and output=abs or output=mot has been specified for output. For any other case, the default is nomap.