What can be done to reduce executable size?
Martin Nowak
dawg at dawgfoto.de
Mon Dec 12 11:33:53 PST 2011
The symbol table.
Probably you also had debug infos for phobos?
By the way if I strip this, my executable is only 292K.
On Sat, 10 Dec 2011 20:16:54 +0100, Trass3r <un at known.com> wrote:
>> 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