DMD memory management

bitwise via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 14 10:01:06 PDT 2015


On Sun, 14 Jun 2015 12:52:47 -0400, ketmar <ketmar at ketmar.no-ip.org> wrote:

> On Sun, 14 Jun 2015 12:37:18 -0400, bitwise wrote:
>
>> How does memory get cleaned up?
>
> yes. by OS when process terminates.
>
> http://www.drdobbs.com/cpp/increasing-compiler-speed-by-over-75/240158941
>
> a small quote: "DMD does memory allocation in a bit of a sneaky way.
> Since compilers are short-lived programs, and speed is of the essence,
> DMD just mallocs away, and never frees."
>
> so it's by design.

Ok, makes sense ;)

   Bit


More information about the Digitalmars-d mailing list