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

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Sun Aug 31 17:00:17 PDT 2014


On Sunday, 31 August 2014 at 23:51:41 UTC, Abe wrote:
>        writeln("hello world!");

The std.stdio package imports most the standard library, so using 
it means a lot of library code is linked into your executable too.

About 200kb is the D runtime code and the rest is standard 
library code.


More information about the Digitalmars-d mailing list