This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A patch for linux 2.1.127


On Sun, 8 Nov 1998, Linus Torvalds wrote:

>Note that this is not just a workaround for a bug. The fact is, that with
>small-register-set, inlining functions is not likely to be all that big of
>a win (and is often a loss due to register allocation pressure) unless the
>function is _really_ small or for some special cases - and in both cases
>hopefully the function is marked inline already by the knowledgeable user.

And without speak about CPU cache issues. In most of cases inlining
everything cause tons of code to be kiked out from the CPU cache and this
hurts more than saving on the stack some parameter and `call'ing the
function. 

Andrea Arcangeli



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]