One document about Go

Walter Bright newshound1 at digitalmars.com
Tue Jun 1 15:13:34 PDT 2010


bearophile wrote:
> Walter Bright:
> 
>> bearophile wrote:
>>> I meant that D seems designed to not assume that the back-end is able to 
>>> inline delegates, and indeed at the moment usually not even LLVM is able
>>> to do it (while Scala compiler is able to often perform this
>>> optimization, and gives the JavaVM code already optimized in this
>>> regard).
>> D does inlining entirely in the front end.
> 
> I think LDC has totally disabled the inlining of the front-end and uses just
> the LLVM inliner, because despite it unfortunately has less semantics to work
> with, it gives better results anyway.

Firstly, this is not a back end vs front end issue. A compiler can do it in 
either place, neither is inherently better than the other. Secondly, in what way 
does LLVM give better inline results?


More information about the Digitalmars-d mailing list