D speed compared to C++

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Tue Mar 18 14:33:04 PDT 2008


Frits van Bommel wrote:
> Matthew Allen wrote:
>>     float dx=0;
[snip]
> However, after adding 'printf("%d", dx)' the generated code for D and 

Oops, that shouldn't be "%d", should it?
Well, it doesn't matter because I just put that in to keep the compiler 
from completely optimizing out the loop but that does explain why I get 
such weird output :).



More information about the Digitalmars-d mailing list