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
Mon Sep 1 11:33:43 PDT 2014
On Monday, 1 September 2014 at 17:46:11 UTC, Jacob Carlborg wrote:
> On 2014-09-01 19:28, Dicebot wrote:
>
>> This was supposed to be enabled by default in 0.14.0 (it is
>> exactly what
>> ld --gc-sections does). Probably some issue with ld argument
>> wrapper for
>> whatever lines OSX uses?
>
> It only works for Linux.
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".
More information about the Digitalmars-d
mailing list