Runtime?

Wulfklaue via Digitalmars-d digitalmars-d at puremagic.com
Wed May 24 12:48:06 PDT 2017


On Wednesday, 24 May 2017 at 15:22:55 UTC, Stanislav Blinov wrote:
> It's a bit of pre-allocation and some internal bookkeeping.
>
> void main()
> {
>     import std.stdio;
>     import core.memory;
>     writeln(GC.stats);
> }
>
> //   used, free
> Stats(256, 1048320)
>
> The remaining .7Mb could probably be attributed to some 
> internal data structures.

Thanks, it places D in a better limelight.

I assume that from the 0.7MB, part of it is the executable ( 
0.24MB ) that is loaded into memory.

+1 for the answer. :)


More information about the Digitalmars-d mailing list