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
You should certainly, apart from what others have already suggested, try -flto. It enables link time optimization which, in some cases, can really do magic.
For further information see https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html