LDC 0.14.0 alpha1 released! Please help test!

FrankLike via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sun Aug 3 16:07:21 PDT 2014


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
>
> compiling small vibe.d application that uses Diet templates:
>
> -rwxr-xr-x 1 dicebot users  16M Aug  3 17:30 diet-dmd
> -rwxr-xr-x 1 dicebot users 8.2M Aug  3 17:31 diet-ldc-new
It's on Linux x64?
I'm on Windows x64,not use any Options ,the size is 3112kb,the 
old's exe size was 3394kb,it's smaller,but why so big on windows 
x64?
Thank you.
Frank



More information about the digitalmars-d-ldc mailing list