why does DMD compile "hello world" to about 500 _kilobytes_ on Mac OS X [x86_64]?!?

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 2 00:03:52 PDT 2014


On Tuesday, 2 September 2014 at 06:18:27 UTC, Jacob Carlborg
wrote:
> On 01/09/14 20:33, Dicebot wrote:
>
>> Any reason why it can't work for OSX in a same way? Assuming 
>> LDC does
>> emit ModuleInfo & Co sections the same way it does on Linux, 
>> using OSX
>> specific alternative to --gc-sections should "just work".
>
> It does not emit these sections the same way, at least not on 
> DMD.

Well I am speaking about LDC ;) --gc-sections don't work with
Linux DMD either.


More information about the Digitalmars-d mailing list