On 8 April 2013 19:31, Jacob Carlborg <doob@me.com> wrote:
On 2013-04-08 10:56, Dicebot wrote:

Sure. Actually, executable size is an easy problem to solve considering
custom druntimed mentioned before. Most of size in small executables
come from statically linked huge druntime. (Simple experiment: use
"-betterC" switch and compile hello-world program linking only to C
stdlib. Same binary size as for C analog).

That's cheating. It's most likely due to the C standard library is being dynamically linked. If you dynamically link with the D runtime and the standard library you will get the same size for a Hello World in D as in C. Yes, I've tried this with Tango back in the D1 days.

I don't see how. I noticed that the ancillary data kept along with class definitions and other stuff was quite significant, particularly when a decent number of templates appear.
Dynamic linkage of the runtime can't affect that.