This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Inline functiion in GCC


On Fri, Aug 06, 2004 at 02:20:11PM -0700, James E Wilson wrote:
> Paul Brook wrote:
> > Like most compilers, gcc generates very poor code if you don't turn 
> > optimization on.
> 
> But don't most compilers emit optimized code by default nowadays?  We 
> would eliminate some of the questions we get if we defaulted to -O1 
> instead of -O0.

The problem is that neither -O0 nor -O1 is really ideal for default code.
-O0 generates needlessly crappy code, but -O1 does not preserve
source correspondence closely enough to avoid problems with debugging or
with code coverage or profiling measurements.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]