I\'m distributing a C++ program with a makefile for the Unix version, and I\'m wondering what compiler options I should use to get the fastest possible code (it falls into t
Please try -oFast instead of -o3
Also here is a list of flags you might want to selectively enable.
-ffloat-store
-fexcess-precision=style
-ffast-math
-fno-rounding-math
-fno-signaling-nans
-fcx-limited-range
-fno-math-errno
-funsafe-math-optimizations
-fassociative-math
-freciprocal-math
-ffinite-math-only
-fno-signed-zeros
-fno-trapping-math
-frounding-math
-fsingle-precision-constant
-fcx-fortran-rules
A complete list of the flags and their detailed description is available here