LDC 0.14.0 alpha1 released! Please help test!

David Nadlinger via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sun Aug 3 16:40:09 PDT 2014


On 3 Aug 2014, at 17:30, Dicebot via digitalmars-d-ldc wrote:
> 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.

This might be part of the reason. The much bigger cause is probably the 
fact that DMD emits each function (?) into a separate object file when 
building with -lib, whereas LDC emits one object file per module. This 
trick in DMD allows the linker to skip more of the unused symbols even 
without --gc-sections.

Cheers,
David


More information about the digitalmars-d-ldc mailing list