From: Gunter Winkler (guwi17_at_[hidden])
Date: 2007-03-12 08:27:17
On Monday 12 March 2007 12:23, Preben Hagh Strunge Holm wrote:
> I'm not much of a gcc-hacker, but since there are hundreds of flags - do
> you remember which one to set if I use gcc/g++?
I use for release version
g++ -O2 -DNDEBUG -g ...
The flag -O3 works most of the time but gives occasionally slower code...
You can also add -ffast-math to allow optimizations that may improve speed but
lose (1 or 2 bits) accuracy.