Re: Inlining can be _very_bad...

2007-03-29 Thread Adrian Bunk
On Fri, Mar 30, 2007 at 12:01:11AM +0200, J.A. Magallón wrote: > On Thu, 29 Mar 2007 19:52:54 +0200, Adrian Bunk <[EMAIL PROTECTED]> wrote: > > > On Thu, Mar 29, 2007 at 01:18:38AM +0200, J.A. Magallón wrote: > > > Hi all... > > > > > > I post this here as it can be of direct interest for kernel

Re: Inlining can be _very_bad...

2007-03-29 Thread J.A. Magallón
On Thu, 29 Mar 2007 19:52:54 +0200, Adrian Bunk <[EMAIL PROTECTED]> wrote: > On Thu, Mar 29, 2007 at 01:18:38AM +0200, J.A. Magallón wrote: > > Hi all... > > > > I post this here as it can be of direct interest for kernel development > > (as I recall many discussions about inlining yes or

Re: Inlining can be _very_bad...

2007-03-29 Thread Adrian Bunk
On Thu, Mar 29, 2007 at 01:18:38AM +0200, J.A. Magallón wrote: > Hi all... > > I post this here as it can be of direct interest for kernel development > (as I recall many discussions about inlining yes or no...). > > Testing other problems, I finally got this this issue: the same short > and

Re: Inlining can be _very_bad...

2007-03-29 Thread Adrian Bunk
On Thu, Mar 29, 2007 at 01:18:38AM +0200, J.A. Magallón wrote: Hi all... I post this here as it can be of direct interest for kernel development (as I recall many discussions about inlining yes or no...). Testing other problems, I finally got this this issue: the same short and stupid

Re: Inlining can be _very_bad...

2007-03-29 Thread J.A. Magallón
On Thu, 29 Mar 2007 19:52:54 +0200, Adrian Bunk [EMAIL PROTECTED] wrote: On Thu, Mar 29, 2007 at 01:18:38AM +0200, J.A. Magallón wrote: Hi all... I post this here as it can be of direct interest for kernel development (as I recall many discussions about inlining yes or no...).

Re: Inlining can be _very_bad...

2007-03-29 Thread Adrian Bunk
On Fri, Mar 30, 2007 at 12:01:11AM +0200, J.A. Magallón wrote: On Thu, 29 Mar 2007 19:52:54 +0200, Adrian Bunk [EMAIL PROTECTED] wrote: On Thu, Mar 29, 2007 at 01:18:38AM +0200, J.A. Magallón wrote: Hi all... I post this here as it can be of direct interest for kernel development

Re: Inlining can be _very_bad...

2007-03-28 Thread Benjamin LaHaise
On Thu, Mar 29, 2007 at 01:18:38AM +0200, J.A. Magallón wrote: > It looks like is updating the stack on each iteration...This is -march=opteron > code, the -march=pentium4 is similar. Same behaviour with gcc3 and gcc4. > > tst.c and Makefile attached. > > Nice, isn't it ? Please, probe where is

Inlining can be _very_bad...

2007-03-28 Thread J.A. Magallón
Hi all... I post this here as it can be of direct interest for kernel development (as I recall many discussions about inlining yes or no...). Testing other problems, I finally got this this issue: the same short and stupid loop lasted from 3 to 5 times more if it was in main() than if it was in

Inlining can be _very_bad...

2007-03-28 Thread J.A. Magallón
Hi all... I post this here as it can be of direct interest for kernel development (as I recall many discussions about inlining yes or no...). Testing other problems, I finally got this this issue: the same short and stupid loop lasted from 3 to 5 times more if it was in main() than if it was in

Re: Inlining can be _very_bad...

2007-03-28 Thread Benjamin LaHaise
On Thu, Mar 29, 2007 at 01:18:38AM +0200, J.A. Magallón wrote: It looks like is updating the stack on each iteration...This is -march=opteron code, the -march=pentium4 is similar. Same behaviour with gcc3 and gcc4. tst.c and Makefile attached. Nice, isn't it ? Please, probe where is my