dmd codegen improvements

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed Aug 19 11:41:05 PDT 2015


On 8/19/2015 11:03 AM, Jacob Carlborg wrote:
> Not sure how the compilers behave in this case but what about devirtualization?
> Since I think most developers compile their D programs with all files at once
> there should be pretty good opportunities to do devirtualization.

It's true that if generating an exe, the compiler can mark leaf classes as final 
and get devirtualization. (Of course, you can manually add 'final' to classes.)

It's one way D can generate faster code than C++.



More information about the Digitalmars-d mailing list