What can be done to reduce executable size?

kenji hara k.hara.pg at gmail.com
Sat Dec 10 11:36:05 PST 2011


Maybe it increases from 2.055.
Now std.uni module has big tables for dealing with Unicode code points
correctly.

And, the pair of 2.057 and new std.regex module has same issue.

Kenji Hara

2011/12/11 Trass3r <un at known.com>:
>> 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