* Gcc and a Garbage Collector.
@ 2005-08-20 0:02 Stephane Wirtel
2005-08-20 0:07 ` Andrew Pinski
0 siblings, 1 reply; 6+ messages in thread
From: Stephane Wirtel @ 2005-08-20 0:02 UTC (permalink / raw)
To: gcc
Hi,
With this page from Wikipedia, http://en.wikipedia.org/wiki/GNU_Compiler_Collection, in the "See also" section,
there is a sentence about a Garbage collected included in GCC.
Is it true ?
If yes, how can I use it with my c++ source code ? (documentation,
articles, tutorials...).
Thanks
Stephane
--
Stephane Wirtel <stephane.wirtel@belgacom.net>
<stephane.wirtel@gmail.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Gcc and a Garbage Collector.
2005-08-20 0:02 Gcc and a Garbage Collector Stephane Wirtel
@ 2005-08-20 0:07 ` Andrew Pinski
2005-08-20 0:17 ` Stephane Wirtel
2005-08-20 0:21 ` Eric Christopher
0 siblings, 2 replies; 6+ messages in thread
From: Andrew Pinski @ 2005-08-20 0:07 UTC (permalink / raw)
To: Stephane Wirtel; +Cc: gcc
>
> Hi,
>
> With this page from Wikipedia, http://en.wikipedia.org/wiki/GNU_Compiler_Collection, in the "See also" section,
> there is a sentence about a Garbage collected included in GCC.
>
> Is it true ?
Yes.
> If yes, how can I use it with my c++ source code ? (documentation,
> articles, tutorials...).
It is a very simple mark and sweep GC and not realy useful for most other projects.
You mark each struct for GCable and all static and global variables too. You cannot
have only a reference to a GCable on the stack (it has to be in a GC marked variable
too) when the gc is called.
-- Pinski
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Gcc and a Garbage Collector.
2005-08-20 0:07 ` Andrew Pinski
@ 2005-08-20 0:17 ` Stephane Wirtel
2005-08-20 0:29 ` Andrew Pinski
2005-08-20 0:21 ` Eric Christopher
1 sibling, 1 reply; 6+ messages in thread
From: Stephane Wirtel @ 2005-08-20 0:17 UTC (permalink / raw)
To: Andrew Pinski; +Cc: Stephane Wirtel, gcc
Le Friday 19 August 2005 a 20:08, Andrew Pinski ecrivait:
> >
> > Hi,
> >
> > With this page from Wikipedia, http://en.wikipedia.org/wiki/GNU_Compiler_Collection, in the "See also" section,
> > there is a sentence about a Garbage collected included in GCC.
> >
> > Is it true ?
>
> Yes.
> > If yes, how can I use it with my c++ source code ? (documentation,
> > articles, tutorials...).
>
> It is a very simple mark and sweep GC and not realy useful for most other projects.
> You mark each struct for GCable and all static and global variables too. You cannot
> have only a reference to a GCable on the stack (it has to be in a GC marked variable
> too) when the gc is called.
Thanks,
And in the gcc documentation, can you tell me where can I find an
example or a description ?
Stephane
--
Stephane Wirtel <stephane.wirtel@belgacom.net>
<stephane.wirtel@gmail.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Gcc and a Garbage Collector.
2005-08-20 0:07 ` Andrew Pinski
2005-08-20 0:17 ` Stephane Wirtel
@ 2005-08-20 0:21 ` Eric Christopher
2005-08-20 0:28 ` Stephane Wirtel
1 sibling, 1 reply; 6+ messages in thread
From: Eric Christopher @ 2005-08-20 0:21 UTC (permalink / raw)
To: Stephane Wirtel; +Cc: GCC Mailing List, Andrew Pinski
On Aug 19, 2005, at 5:07 PM, Andrew Pinski wrote:
>>
>> Hi,
>>
>> With this page from Wikipedia, http://en.wikipedia.org/wiki/
>> GNU_Compiler_Collection, in the "See also" section,
>> there is a sentence about a Garbage collected included in GCC.
>>
>
There's also boehm-gc:
http://www.hpl.hp.com/personal/Hans_Boehm/gc/
which is shipped with gcc for java's use.
Mostly depends on what you're looking at the gc for - whether it's
for your language, for hacking on gcc, or something else.
-eric
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Gcc and a Garbage Collector.
2005-08-20 0:21 ` Eric Christopher
@ 2005-08-20 0:28 ` Stephane Wirtel
0 siblings, 0 replies; 6+ messages in thread
From: Stephane Wirtel @ 2005-08-20 0:28 UTC (permalink / raw)
To: Eric Christopher; +Cc: Stephane Wirtel, GCC Mailing List, Andrew Pinski
\b
> There's also boehm-gc:
>
> http://www.hpl.hp.com/personal/Hans_Boehm/gc/
>
> which is shipped with gcc for java's use.
>
> Mostly depends on what you're looking at the gc for - whether it's
> for your language, for hacking on gcc, or something else.
Thanks Eric,
--
Stephane Wirtel <stephane.wirtel@belgacom.net>
<stephane.wirtel@gmail.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Gcc and a Garbage Collector.
2005-08-20 0:17 ` Stephane Wirtel
@ 2005-08-20 0:29 ` Andrew Pinski
0 siblings, 0 replies; 6+ messages in thread
From: Andrew Pinski @ 2005-08-20 0:29 UTC (permalink / raw)
To: Stephane Wirtel; +Cc: gcc
On Aug 19, 2005, at 8:16 PM, Stephane Wirtel wrote:
>> It is a very simple mark and sweep GC and not realy useful for most
>> other projects.
>> You mark each struct for GCable and all static and global variables
>> too. You cannot
>> have only a reference to a GCable on the stack (it has to be in a GC
>> marked variable
>> too) when the gc is called.
> Thanks,
>
> And in the gcc documentation, can you tell me where can I find an
> example or a description ?
in the internals manual of GCC, it is part of the sources of GCC and
nothing
else. You can pull it out and use it in a different project but that
would
very stupid.
Anyways the docs are:
http://gcc.gnu.org/onlinedocs/gccint/Type-Information.html#Type-
Information
-- Pinski
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-08-20 0:29 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-20 0:02 Gcc and a Garbage Collector Stephane Wirtel
2005-08-20 0:07 ` Andrew Pinski
2005-08-20 0:17 ` Stephane Wirtel
2005-08-20 0:29 ` Andrew Pinski
2005-08-20 0:21 ` Eric Christopher
2005-08-20 0:28 ` Stephane Wirtel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).