<div dir="ltr">On 8 April 2013 19:31, Jacob Carlborg <span dir="ltr"><<a href="mailto:doob@me.com" target="_blank">doob@me.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 2013-04-08 10:56, Dicebot wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sure. Actually, executable size is an easy problem to solve considering<br>
custom druntimed mentioned before. Most of size in small executables<br>
come from statically linked huge druntime. (Simple experiment: use<br>
"-betterC" switch and compile hello-world program linking only to C<br>
stdlib. Same binary size as for C analog).<br>
</blockquote>
<br></div>
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.</blockquote>
<div><br></div><div style>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.</div><div style>
Dynamic linkage of the runtime can't affect that.</div></div></div></div>