inlining or not inlining...

so so at so.so
Fri Feb 11 17:15:58 PST 2011


>> Register allocation is far more important than inlining. Why not give  
>> information about why a variable was not enregistered?
>
> I am sorry Walter but your stance on this more politic than a practical  
> fact, it is not you, sounds like you secured a professorship!. :)

Now i started to see the reasons of your stance, reading some of the old  
posts about this you are right directing them to asm output.
Because what they ask is doesn't make sense, this is a low level  
optimization/query and if they can't even find out from asm output (also  
this is something needs to be queried that way), this is the last of their  
concerns.

Again, you are absolutely right if your reasoning is that things like  
@can_inline @please_tell_me_if_you_can is just nonsense.

Real issue pops up when you know if compiler is inlining or not but have  
no say in the decision process.
You simply need a mechanism to sometimes state, "i need all i can get  
here, i know what i am doing, inline and save me a function call cost."
And unlike many other low level optimizations this is something we can  
control.

If you are against this reasoning, i don't have any idea why D has inline  
assembly, which again targets a very small audience.


More information about the Digitalmars-d mailing list