Knowledge base dedicated to Linux and applied mathematics.
Home > C++ > FAQ C++ > FAQ C++ - gcc/g++ > Build in release mode with full optimizations in gcc / g++
-O3
turns on all optimizations.
http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html gives all information about gcc optimizations.