Inlining Improvements

Marcin Dalecki dalecki@dacotec.net
Wed Dec 22 00:15:00 GMT 1999


"Martin v. Loewis" wrote:
> 
> > The point is that tree inlining seems to generate better code than RTL
> > inlining which the C compiler currently does.
> 
> Examples?
> 

No problem: looks at some recent linux-2.3.xxx kernel source:

root:/usr/src/linux/fs# less buffer.c 

Look for the macros:

#define _hashfn(dev,block) 
#define hash(dev,block) 

And theyr usage.

Later down they are used with some intermediate value
which get's outpotimized for the macro version, but which
doesn't go away without reordering of the usage code
for the inline versions thereof.

--Marcin


More information about the Gcc mailing list