Re: 2.2.0 and egcs 1.1 was Re: Sorry, wrong gcc-version

Andi Kleen (ak@muc.de)
Mon, 26 Oct 1998 18:49:40 +0100


On Mon, Oct 26, 1998 at 05:12:57PM +0100, Jamie Lokier wrote:
> On Mon, Oct 26, 1998 at 10:20:24AM +0100, Andi Kleen wrote:
> > The reason is that macros generate better code on gcc than inline functions
> > (sad but true).
>
> Is this still true for EGCS 1.1?

Yes it is. The main problem is that gcc has to "flush" all memory references
at the inline function borders (this hurts the most in C++ programs with
small inline member functions that operate on class fields, but it is bad
in C too). Also the register allocators seem to perform worse than with
a macro.

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/