From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,29850945228df59 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-17 02:03:00 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!skynet.be!skynet.be!louie!tlk!not-for-mail Sender: lbrenta@lbrenta.corp.emc.com Newsgroups: comp.lang.ada Subject: Re: Boehm-Demers-Weiser conservative garbage collector and GNAT References: <1316747.mXveBPtf0Z@linux1.krischik.com> From: Ludovic Brenta Date: 17 Jun 2003 11:04:14 +0200 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 213.190.149.159 X-Trace: 1055840579 reader0.news.skynet.be 313 fa058819/213.190.149.159:54946 X-Complaints-To: abuse@skynet.be Xref: archiver1.google.com comp.lang.ada:39315 Date: 2003-06-17T11:04:14+02:00 List-Id: Martin Krischik writes: > Hello, > > I am wondering if it is possible to implement a storage pool using the > Boehm-Demers-Weiser conservative garbage collector in GNAT. > > But before I waste to much time I would like to know if anybody ever tried > that before? > > Or does anybody know any reasons why this might be doomed? > > With Regards > > Martin > > For details on Boehm-Demers-Weiser conservative garbage collector see: > > http://www.hpl.hp.com/personal/Hans_Boehm/gc/index.html The web page you mention says that GCC contains a version of this garbage collector. I understand this has been introduced in GCC 3.0. So, to me, there appears to be three approaches to "implement a storage pool using the Boehm-Demers-Weiser conservative garbage collector in GNAT": - Re-implement the GC in Ada, as an external library, so that all Ada programs can use it (even non-GNAT ones if the code is portable). - Write a thick Ada binding to the C garbage collector, with the same end result as above, but requiring an additional library at link time. - Modify libgnat and libgnarl in GCC 3.3 with a new storage pool that uses the copy of the GC that is in GCC 3.3; this would make the GC available only to GCC 3.3 applications. Which were you thinking about? -- Ludovic Brenta.