-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.

 

<When optimize=max is specified>

 

Loop Expansion

Inline Expansion

Converting Constant Division into Multiplication

Scheduling Instructions

Constant Propagation of const Qualified Variables

Dividing Optimizing Ranges

Optimizing External Variable Accesses

Optimization Considering the Type of the Data Indicated by the Pointer

size

loop=1

inline=0

noconst_div

schedule

const_
copy

noscope

map*
nomap*

alias=ansi

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.

<When optimize=2 is specified>

 

Loop Expansion

Inline Expansion

Converting Constant Division into Multiplication

Scheduling Instructions

Constant Propagation of const Qualified Variables

Dividing Optimizing Ranges

Optimizing External Variable Accesses

Optimization Considering the Type of the Data Indicated by the Pointer

size

loop=1

noinline

noconst_div

schedule

const_
copy

scope

nomap

alias=noansi

 

<When optimize=0 or optimize=1 is specified>

 

Loop Expansion

Inline Expansion

Converting Constant Division into Multiplication

Scheduling Instructions

Constant Propagation of const Qualified Variables

Dividing Optimizing Ranges

Optimizing External Variable Accesses

Optimization Considering the Type of the Data Indicated by the Pointer

size

loop=1

noinline

noconst_div

noschedule

noconst_
copy

scope

nomap

alias=noansi