[Issue 14748] Removing std.stdio import causes 2x increase in "Hello, world" program binary filesize

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jun 29 21:41:04 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14748

--- Comment #4 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
anyway, something is wrong with generated object file. i generated "hello.o"
for phobos without PR3443 applied and with PR3443 applied, then linked that
object files with "libphobos2.a" WITH PR3443 applied, and got two ELFs with
very different sizes (~900 kb and ~400 kb respectively).

so seems that with PR3443 DMD generates an object file which somehow pulls in
alot of unnecessary modules. very strange.

--


More information about the Digitalmars-d-bugs mailing list