inlining or not inlining...

Jim bitcirkel at yahoo.com
Fri Feb 11 05:35:29 PST 2011


spir Wrote:

> On 02/11/2011 09:33 AM, Jim wrote:
> >> Regardless, I would _hope_ that the compiler would be smart enough to make
> >> >  intelligent choices about inlining. That's probably one of those areas that can
> >> >  always be improved however.
> >
> > I also think that this decision should be left to the compiler.
> >
> > The inline keyword was deemed useful for the same reason that symbols had to be declared before their use (causing the C/C++ header hell) -- it's easier to implement such a compiler.
> 
> Agreed; but what about having the compiler tell you, on demand, "func 'f' at 
> line #l in module 'm' was not inlined" ?

I rarely need to go that low-level. My hope is that the compiler will sort this out in the end. Give it some time, or effort to have these optimizations implemented in the compiler.


More information about the Digitalmars-d mailing list