Re: unexpected speedup by manual inlining

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrew Bell wrote:
> On Tue, Oct 28, 2008 at 7:23 AM, Rohit Garg <rpg.314@xxxxxxxxx> wrote:
>> Hi all,
>>
>> I have a small app. In it in a a particular place, I had a 2-3
>> functions being called from one main function. They were small
>> functions (5-6 lines) and inline keyword was used. The performance was
>> ......... HORRIBLE.
>>
>> -Winline didn't report any case of a function not being inlined.
> 
> Perhaps this is suggesting the obvious, but gcc doesn't do inlining if
> you aren't compiling with optimization.  You get no warning in this
> case from -Winline.

I was wondering about that.  It's why a reproducible test case is
essential.

Andrew.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux