Performance dmd vs ldc2

Chris wendlec at
Wed Jul 24 04:50:33 PDT 2013

On Wednesday, 24 July 2013 at 11:42:59 UTC, bearophile wrote:
> Chris:
>> Although I have not done any serious (i.e. exact) benchmarking 
>> here are the first obvious results:
> In the last weeks Walter has written several patches for the 
> back-end of DMD, to better optimize programs, but I didn't see 
> benchmarks to justify those changes.
>> PS Naive question: What's the difference between ldc2 and 
>> ldmd2?
> ldmd2 is just a wrapper that calls ldc2. It gives a similar 
> interface to dmd. But it lacks profiler, linker options like 
> -L/STACK:1000000 and more.
> (How do you increase stack space on Windows with ldc2?)
> Bye,
> bearophile

ldmd2 compiles the code much faster than ldc2 (~4 secs vs 14 
secs). The program runs just as fast (as far as I can see at the 

More information about the digitalmars-d-ldc mailing list