Re: 'C' Operators precedence

Marty Leisner (
Thu, 21 May 1998 10:14:15 PDT

> >
> > And this _without_ optimisation. gcc is right to do this; if a function
> > clobbers registers, then let it do so when the variables don't contain
> > anything interersting anyway.
> Umm, the reason why there is a penalty for calling a function (and why c++ has
> inline functions to avoid the penalty) is because calling a function pushes
> all the registers onto the stack, and restores them afterward.
> --
> Hacksaw = David Charles Todd
> GTEI-BBNT = Hacksaw's Employer
> Hacksaw's Opinions != GTEI-BBNT's Opinions
> Linux understands you.

gcc supports inline for C programs.

And an optomizer with the sense can easily inline functions if it
chooses to do so...

The Feynman problem solving Algorithm
        1) Write down the problem
        2) Think real hard
        3) Write down the answer
                Murray Gell-mann in the NY Times

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to