Параметры -O
включают оптимизацию компилятора. Изman gcc
:
-O2 Optimize even more. GCC performs nearly all supported
optimizations that do not involve a space-speed tradeoff. As
compared to -O, this option increases both compilation time and the
performance of the generated code.
Список конкретных оптимизаций см. на страницах руководства.