LDC 0.14.0 alpha1 released! Please help test!
FrankLike via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Sun Aug 3 16:14:19 PDT 2014
On Sunday, 3 August 2014 at 23:07:22 UTC, FrankLike wrote:
> On Sunday, 3 August 2014 at 15:30:52 UTC, Dicebot wrote:
>> For this simple program:
>>
>> ```
>> import std.stdio, std.algorithm;
>>
>> void main()
>> {
>> auto arr = [ 1, 2, 3, 4 ];
>> writeln(arr.map!(a => 2*a));
>> }
>> ```
>>
>> -rwxr-xr-x 1 dicebot users 581K Aug 3 16:52 dmd
>> -rwxr-xr-x 1 dicebot users 3.6M Aug 3 17:24 gdc
>> -rwxr-xr-x 1 dicebot users 2.2M Aug 3 16:54 ldc-old
>> -rwxr-xr-x 1 dicebot users 410K Aug 3 17:21 ldc-new
>>
>> It is quite interesting that dmd binary size is so smaller
>> than gdc and old ldc output - probably something related to
>> frontend symbol emitting difference. I have also checked `nm
>> -a` output and can confirmed that `ldc-new` is the only one
>> that does not have inlined map symbols (including lambda) in
>> the resulting binary.
>>
>> output for stripped binaries:
>>
>> -rwxr-xr-x 1 dicebot users 387K Aug 3 17:27 dmd
>> -rwxr-xr-x 1 dicebot users 2.6M Aug 3 17:27 gdc
>> -rwxr-xr-x 1 dicebot users 1.1M Aug 3 17:27 ldc-old
>> -rwxr-xr-x 1 dicebot users 274K Aug 3 17:27 ldc-new
What Optins you know on Windows x64 ? I want let the exe file to
small.
Thank you.
Frank
More information about the digitalmars-d-ldc
mailing list