On Mon, 2 January 2006 21:05:31 +0100, Krzysztof Halasa wrote: > Arjan van de Ven <[email protected]> writes: > > > it's by far not only gains. And maintenance costs too. > > Anyway, distinctive "inlines" could help here, right? Not really. Your example, as Linus already explained, is a great example of how _not_ to inline stuff. If in doubt, don't inline. If a function is called just once, don't inline unless there are other good reasons for it. If you get a minimal gain (10 bytes) in text size, don't inline. The maintenance issue is more important. Jörn -- A defeated army first battles and then seeks victory. -- Sun Tzu - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Ingo Molnar <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Arjan van de Ven <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Adrian Bunk <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Ingo Molnar <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Krzysztof Halasa <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Arjan van de Ven <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Krzysztof Halasa <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Arjan van de Ven <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Krzysztof Halasa <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- Prev by Date: Re: SysReq & serial console
- Next by Date: Re: Arjan's noinline Patch
- Previous by thread: Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- Next by thread: Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- Index(es):