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]
- | Optimization is applied to the files specified by the -goptimize option at compilation or assembly. |
- | This option specifies whether to execute inter-module optimization. |
|
|
|
|
|
None
|
Provides all optimizations.
|
|
|
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.
|
|
|
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.
|
|
|
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.
|
|
|
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.
|
|
|
[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. |