Several companies I have worked at use -O3 optimization for production code. For production, they also minimize the debugging information to -g1. The -g1 option produces some useful symbol information for backtracing and little else.
The downside of -O3 optimizations is that the debugger info can be obscured. When you step through the program with -O3 optimization in a debugger, you can bounce around different parts of the program without any idea of why it is happening. For a debugging environment, its best to turn up the debug level to -g3 and turn off the optimizations to -O0. _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus