State of and plans for the garbage collector

Vladimir Panteleev vladimir at thecybershadow.net
Thu Jul 15 12:05:35 PDT 2010


On Thu, 15 Jul 2010 21:34:36 +0300, Bane  
<branimir.milosavljevic at gmail.com> wrote:

> Why not make D summer of code - write your own GC optimized for special  
> case of XYZ, send it, bundle all up in D with compiler switch  
> '--useGC=XYZ'. That is only way to really compare what is best for  
> special case.

In D1, the garbage collector is actually compiled to a stand-alone  
library, but then it's statically linked into Phobos. If you edit the  
Phobos makefile a bit, you should then be able to specify the GC .lib to  
link to on the compiler/linker command-line.

In D2 it looks like the GC is clumped together with the runtime.

-- 
Best regards,
  Vladimir                            mailto:vladimir at thecybershadow.net


More information about the Digitalmars-d mailing list