Inlining Improvements

Mark Mitchell mark@codesourcery.com
Tue Dec 21 08:55:00 GMT 1999


>>>>> "Jamie" == Jamie Lokier <jamie.lokier@cern.ch> writes:

    Jamie> So we have a situation where the C++ compiler generates
    Jamie> better code than the C compiler from the same source?

    Jamie> Are there plans to add the tree inlining to C any time
    Jamie> soon?

We (CodeSourcerY) don't have any such plans, although we're actively
encouraging customers to do that work.

I believe that Cygnus is working on moving some of the
function-at-a-time work which is a necessary prerequisite for the new
inliner, into language-independent code.

I'm actually quite surprised that the tree-based inlining has made as
much a difference (in the quality of the generated code) as it has in
some cases.  Some MIPS benchmarks one of our customers had now run
twice as quickly -- somehow, the new inliner is making it easier for
the back-end to do its job, at least in some situations.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


More information about the Gcc mailing list