LDC 0.14.0 alpha1 released! Please help test!
Dicebot via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Sun Aug 3 08:30:50 PDT 2014
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
More information about the digitalmars-d-ldc
mailing list