lkml.org 
[lkml]   [1998]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: 'C' Operators precedence
Date
From
> > 
> > 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...


--
marty
leisner@sdsp.mc.xerox.com
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 majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [from the cache]
©2003-2011 Jasper Spaans