[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using -O3 options with g++
From: |
RRick |
Subject: |
Re: using -O3 options with g++ |
Date: |
Fri, 20 Nov 2009 01:46:05 -0800 (PST) |
User-agent: |
G2/1.0 |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: using -O3 options with g++,
RRick <=