dmd codegen improvements

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Aug 18 11:59:35 PDT 2015


On 8/18/2015 5:32 AM, Etienne Cimon wrote:
> Other than that, there was a recent Java vs D thread which showed it orders of
> magnitude faster on vtable calls. So I think the most amazing feature would be
> to allow profiling & sampling to compile with samples and select which functions
> to inline or do some magic around vtable pointers like what Java is doing.

There is some potential there, but since a static compiler doesn't do runtime 
profiling, some sort of hinting scheme would have to be invented.

> Finally, I'm going to write this down here and haven't had time to look more
> into it but I've never been able to compile Botan with optimizations on DMD64
> Win64 VS2013 (https://github.com/etcimon/botan), it's really strange having a
> crypto library that you can't optimize, building -O -g also gives me a ccog.c
> ICE error. I think it might be something about `asm pure` that uses some locals,
> does that eliminate the function call parameters?

Please file a bug report for that!


More information about the Digitalmars-d mailing list