Skip to main content
  1. Notes/

GCC

NameOptimization levelExecution timeCode sizeMemory usageCompile time
-O0compilation time (default)++--
-O1 or -Ocode size and execution time--++
-O2code size and execution time+++
-O3code size and execution time++++
-Osoptimization for code size++
-OfastO3 with fast none accurate math calculations++++