Opinion of February 2012

Zachary Lund admin at computerquip.com
Sun Feb 5 09:14:36 PST 2012


On 02/05/2012 09:18 AM, H. S. Teoh wrote:
> On Sun, Feb 05, 2012 at 12:10:33AM -0800, Walter Bright wrote:
>> On 2/3/2012 4:28 PM, H. S. Teoh wrote:
>>> I agree with this. Based on current documentation, I didn't even know
>>> the GC can be replaced at compile-time until someone mentioned it.
>>> And up to now I still don't know how exactly to do this, since I
>>> couldn't find any docs for it.
>>
>> The documentation for that is in the source files for the GC, the GC
>> is even in its own subdirectory, src/gc. It stands to reason that to
>> replace the GC, that's where to look.
>>
>> Doing a replacement GC is pretty advanced work. If one is ready for
>> that, it isn't unreasonable to expect one to peruse those files.  It's
>> a bit beyond the scope of D to provide a tutorial on how to write a
>> replacement GC, though you're welcome to do it and contribute it.
>
> I was just referring to how to switch between different GCs at
> compile-time. I'm sure somebody documented this somewhere, the point was
> that there isn't a central place where someone unfamiliar with the
> system can go to find the answers.
>
>
> T
>

There's a gc stub inside of the druntime get repo. You can literally 
include that and link it into your project and it will replace the GC as 
long as you statically link the rest of the druntime (I'm not sure what 
it does if you dynamically link it).


More information about the Digitalmars-d mailing list