teething troubles

Dean via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 17 01:45:40 PDT 2014


> On a Windows 32 bit that little program compiles in 0.74 
> seconds (warmed up time) using and old CPU. Modern CPUs should 
> take about 0.5 seconds.

Thanks for checking the timings.... wait I am not alone in using a
32 bit box !

Mine is an Athlon 1045.456 MHz. The minimum of 3 consecutive
compilation runs that I get is 2.3 seconds.

> Keep in mind that writeln and std.stdio are lot of stuff.

Just to be clear I am not complaining dmd is slow. I am just
concerned that I am doing something wrong.

> I have also tried this C++ version:
>
> #include <iostream>
> int main() {
>     std::cout << "hello" << std::endl;
>     return 0;
> }
> With gcc 4.8.0 it takes me 0.48 seconds to compile (warmed up 
> time).

On my box this compiles in 1.2 seconds. So it seems somewhat
consistent (as in 3 times slower for both). I got worried because
I expected dmd to compile "hello world" substantially faster than
g++. I have heard that dmd is instantaneous.


I am still at a loss about tango for D2 problem. Shouldnt
providing the -I option with the path to tango work. Does any
other magic need to happen. I dont know the internal mechanics of
importing modules.


More information about the Digitalmars-d-learn mailing list