www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - ldc produces very small binaries

reply simendsjo <simendsjo+dlang gmail.com> writes:
I just compiled a very small script using dmd, gdc and ldc.

I used `dub build --compiler=DC --build=release --force`

dmd: 2.6 sec, 2.8 mb
gdc: 4.1 sec, 3.3 mb
ldc: 3.2 sec, 456 kb

The ldc binary with strip and then upx results in an 88 kb binary!

Thanks for the great work!
Aug 25 2014
parent "Kai Nacke" <kai redstar.de> writes:
On Monday, 25 August 2014 at 08:58:53 UTC, simendsjo wrote:
 I just compiled a very small script using dmd, gdc and ldc.

 I used `dub build --compiler=DC --build=release --force`

 dmd: 2.6 sec, 2.8 mb
 gdc: 4.1 sec, 3.3 mb
 ldc: 3.2 sec, 456 kb

 The ldc binary with strip and then upx results in an 88 kb 
 binary!

 Thanks for the great work!
All thanks goes to David who implemented this great feature! Regards, Kai
Aug 25 2014