This is the mail archive of the
mailing list for the GCC project.
Re: C++ compile-time regressions
- To: mark at codesourcery dot com (Mark Mitchell)
- Subject: Re: C++ compile-time regressions
- From: Joe Buck <jbuck at synopsys dot COM>
- Date: Thu, 2 Aug 2001 12:46:48 -0700 (PDT)
- Cc: aoliva at redhat dot com (aoliva at redhat dot com), pfeifer at dbai dot tuwien dot ac dot at (Gerald Pfeifer), jbuck at synopsys dot com (Joe Buck), gcc at gcc dot gnu dot org (gcc at gcc dot gnu dot org), gcc-patches at gcc dot gnu dot org (gcc-patches at gcc dot gnu dot org)
> > I suppose it would be desirable to inline pretty much the
> > same functions, regardless of the target.
> Yes, I suppose -- although if a function really is going to take up
> twice as much icache on one platform as another, it might be a less
> promising inlining candidate.
The compiler doesn't know the size of the user's icache, so it's hard
to make these tradeoffs: processors with lower instruction density might
well use bigger icaches to compensate.
> If you run some numbers and can show it's a win, then I think that's
> good. I wouldn't commit it without demonstrating the win, though.
Agreed, we need numbers. Gerald's tests are one source of inputs; there
also may be some code in Boost that could be used.