Big executable?

Andre Tampubolon andre at lc.vlsm.org
Tue Oct 5 23:12:08 PDT 2010


Hi,

I just started learning D (my background is C, anyway).

I compiled this simple code using DMD 2.049 (dmd -O -release test1.d) :
import std.stdio;

void main()
{
     writefln("%s World", "Hello");
}

The final executable size is about 300 KB. Isn't that a bit huge, 
considering the same code compiled using C or Pascal compiler will give 
smaller executable? So I tried to look at the *.map, and apparently the 
D runtime pulls a lot of stuff. I am just wondering, anyway.


More information about the Digitalmars-d mailing list