OPTIMIZATIONS
Function
-O(us|u|nu)
us: yes, but never if HLI present in function (default)
u: always (even if HLI is present in function)
nu: never
-Ous: Optimization enabled for functions containing no inline assembler code
None
None
Optimizes dead assignments. The Compiler removes assignments to unused local variables.
There are three possible settings for this option: -Ou is given, -Onu is given, or -Ous is given:
-Ou: Always optimize dead assignments (even if HLI is present in current function). The Compiler does not consider inline assembler accesses.
-Onu: No optimization occurs. This generates the best possible debug information, and produces larger and slower code.
-Ous: Optimize dead assignments if HLI is not present in the current function.
void main(int x) {
f(x);
x = 1; /* this assignment is dead and is
removed if -Ou is active */
}