4.6.6.3 O2: Level 2 Optimizations Option
The -O2
option requests level 2 optimizations.
At this level, the compiler performs nearly all supported optimizations that do not involve a space-speed trade-off.
This level is available for unlicensed as well as licensed compilers.