File size of exe: DMD vs LDC

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Mon May 9 06:53:45 PDT 2016


On Monday, 9 May 2016 at 13:48:50 UTC, Walter Bright wrote:
> On 5/9/2016 5:24 AM, Jacob Carlborg wrote:
>> LDC can strip sections which DMD cannot.
>
> Why not?

AFAIR, because of how ModuleInfo/TypeInfo is emitted which makes 
linker never collect sections because they are referenced at 
least from there. LDC was intentionally modified to change code 
gen in that regard to make --gc-sections work - David will surely 
tell more :)


More information about the Digitalmars-d mailing list