Re: how to avoid default inlining of static functions at O3 ?

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

 



john wrote:

> I see that at optimization level O3, the compiler is defaultly inlining my static functions. Is there a way to avoid inlining static functions for C programs ?

That's kind of contradictory to what -O3 means, though.  -O3 tells gcc
to favor speed at any cost so in effect you are telling it to enable all
the optimizations that it might otherwise consider a poor tradeoff
because they bloat code size with extra inlining.  Consider using -Os if
you want less inlining.

Brian

[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