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.

--
/Jacob Carlborg

Reply via email to