Need some opinions

Mike Stump mrs@wrs.com
Wed Mar 31 23:46:00 GMT 1999


> From: craig@jcb-sc.com
> Date: 6 Mar 1999 22:28:13 -0000

> My feeling is, if the optimization is likely to save as much (or more)
> overall compile/link time as, say, twice as much as it costs, it's
> probably worth turning on for -O0.

Let me add just one more thought to this...  I agree on the whole with
this...  in addition I prefer that only optimizations that have been
in the compiler _long enough_ be turned on at -O0.  This way, if there
is a bug in the code -O0 can remove the bug.  This is usually a useful
feature of -O0.



More information about the Gcc mailing list