Disable GC entirely

Manu turkeyman at gmail.com
Mon Apr 8 02:39:18 PDT 2013


On 8 April 2013 19:31, Jacob Carlborg <doob at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130408/e4b47c72/attachment.html>


More information about the Digitalmars-d mailing list