What can be done to reduce executable size?

Bane branimir.milosavljevic at gmail.com
Sat Dec 10 07:39:19 PST 2011


Short term and long term suggestions ? Anything we can do ? I heard it 
is some problem with linking dead code?



import std.stdio;
int main(){
   writefln("Hello Bloat!");
   return 0;
}

dmd -release -O hello.d

On Windows:
v1.071 = 339 Kb
v2.056 = 1017 Kb

It looks very ugly and might distract some people.


More information about the Digitalmars-d mailing list