On 2010-12-18 19:25, Nick Sabalausky wrote:
"jovo"<j...@at.home> wrote in message news:ieit9a$2n5...@digitalmars.com...
Hi,
Today I compiled my old two module console program with d-2.50.
It uses only std.c.time, std.c.stdio, std.random and templates.
Compiled with -O -release, on windows.
Executable size (d-2.50): 4.184 kb.
Trayed with d-1.30: 84 kb.
Is it expected?
Yes. The runtime is currently built into the exe. With C/C++, the runtime is
often stored separately so the exe files themseves end up a lot smaller,
even though they rely on at least as much compiled code.
Building the D runtime and the standard library as a dynamic library
will get you the same executable size as a C executable, at least with
D1 and Tango on Mac OS X.
--
/Jacob Carlborg