OPTIMIZATIONS
Function
-O(s|t)
s: Optimize for code size (default)
t: Optimize for execution speed
-Os
__OPTIMIZE_FOR_SIZE__
__OPTIMIZE_FOR_TIME__
None
At times the Compiler must choose between generating fast, large code, or slow, small code.
The Compiler generally optimizes on code size. It often decides between a runtime routine or expanded code. The programmer can decide whether to choose the slower and shorter or the faster and longer code sequence by setting a command line switch.
The -Os option directs the Compiler to optimize the code for smaller code size. The Compiler trades faster/larger code for slower/smaller code.
The -Ot option directs the Compiler to optimize the code for faster execution time. The Compiler trades slower/smaller code for faster/larger code.
-Os