Everything

 

-Optimize


This option specifies whether to execute inter-module optimization.

[Specification format]

-OPtimize[=Branch] [V1.01]
-Optimize[={SYmbol_delete|Branch|SPeed|SAFe}] [V1.02 or later]

 

-

Interpretation when omitted

All optimizations are provided. It is the same result as when the -optimize option is specified.

[Detailed description]

-

This option specifies whether to execute inter-module optimization.

Parameter

Meaning

Program To Be Optimized

C Language

Assembly Language

None

Provides all optimizations.

OK

NG

symbol_delete

[V1.02 or later]

Deletes variables or functions that have not been referenced even once. Be sure to specify the entry option at compilation.

OK

NG

branch

Optimizes branch instruction size according to program allocation information.

Even if this option is not specified, it is performed when any other optimization is executed.

OK

OK

speed

[V1.02 or later]

Executes types of optimization except for those that may slow down the object speed.

Same as -optimize=symbol_delete or -optimize=branch.

OK

NG

safe

[V1.02 or later]

Executes types of optimization except for those that may restrict the attributes of variables or functions.

Same as -optimize=branch.

OK

NG

-

Optimization is applied to the files specified by the -goptimize option at compilation or assembly.

[Example of use]

-

To optimize the branch size, describe as:

>rlink a.obj b.obj -optimize=branch

[Remark]

-

If the -form={object|relocate|library} option or -strip option is specified, this option will be invalid.

-

When the execution address (entry) is not specified, -optimize=symbol_delete is invalid.

-

If an invalid parameter is specified, a warning will be output and the specification will be ignored.