Related articles |
---|
[10 earlier articles] |
Re: Best Ref-counting algorithms? lerno@dragonascendant.com (=?ISO-8859-1?Q?Christoffer_Lern=F6?=) (2009-07-14) |
Re: Best Ref-counting algorithms? lerno@dragonascendant.com (=?ISO-8859-1?Q?Christoffer_Lern=F6?=) (2009-07-15) |
Re: Best Ref-counting algorithms? torbenm@pc-003.diku.dk (2009-07-15) |
Re: Best Ref-counting algorithms? cr88192@hotmail.com (BGB / cr88192) (2009-07-15) |
Re: Best Ref-counting algorithms? cr88192@hotmail.com (BGB / cr88192) (2009-07-15) |
Re: Best Ref-counting algorithms? cr88192@hotmail.com (BGB / cr88192) (2009-07-15) |
Re: Best Ref-counting algorithms? cr88192@hotmail.com (BGB / cr88192) (2009-07-15) |
Re: Best Ref-counting algorithms? gene.ressler@gmail.com (Gene) (2009-07-15) |
Re: Best Ref-counting algorithms? torbenm@pc-003.diku.dk (2009-07-16) |
Re: Best Ref-counting algorithms? bartc@freeuk.com (BartC) (2009-07-16) |
Re: Best Ref-counting algorithms? gneuner2@comcast.net (George Neuner) (2009-07-16) |
Re: Best Ref-counting algorithms? haberg_20080406@math.su.se (Hans Aberg) (2009-07-17) |
Re: Best Ref-counting algorithms? haberg_20080406@math.su.se (Hans Aberg) (2009-07-17) |
[17 later articles] |
From: | "BGB / cr88192" <cr88192@hotmail.com> |
Newsgroups: | comp.compilers |
Date: | Wed, 15 Jul 2009 19:38:22 -0700 |
Organization: | albasani.net |
References: | 09-07-018 09-07-023 09-07-027 09-07-037 09-07-042 |
Keywords: | GC |
Posted-Date: | 16 Jul 2009 18:32:58 EDT |
"Christoffer Lernv" <lerno@dragonascendant.com> wrote in message
> On Jul 14, 8:02 pm, Hans Aberg <haberg_20080...@math.su.se> wrote:
>> Christoffer LernC6 wrote:
>> >> It depends on what resources you want to collect, and what
>> >> implementation language you are choosing.
>>
>> > I'm playing around with a ref-counting based (memory) GC for a
>> > language I have yet to construct.
>>
>> But what language are you planning use for the implementation? If you
>> choose C++, then it is hard to find the root set. Suppose you create
>> object for use in your language; then global objects and those in th
>> stack should be registered somehow for the tracing, but those on the
>> heap should not, as the are live when they can be traced from the other.
>
> I was thinking of using C for implementation, but does that matter? As
> long as I implement the language in a non GC:ed language I will have
> to take care of writing the GC myself (or for C, use the Bohm
> conservative GC).
yes.
Boehm in general seems like a good option, although I guess I don't use it
because its featureset is not exactly the same as mine, in particular,
because AFAIK it lacks per-object type-info (in my GC, pretty much every
piece of allocated memory has a type...).
> /C
Return to the
comp.compilers page.
Search the
comp.compilers archives again.