What can be done to reduce executable size?
Trass3r
un at known.com
Sat Dec 10 11:16:54 PST 2011
> 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
$ dmd -release -O test.d
867K
$ strip -s test
572K
I don't know where the 300KB come from.
The map files are equal:
dmd -release -O -map test.d
dmd -release -O -L-s -map test.d
This is what Hello World looks like on x64 Linux:
http://thecybershadow.net/d/mapview/view.php?id=4ee3af86c32f2
More information about the Digitalmars-d
mailing list