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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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 10:49:14 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Boehm-Demers-Weiser conservative garbage collector and GNAT Date: Tue, 17 Jun 2003 17:46:11 +0200 Organization: AdaCL Message-ID: <1569706.xF3myxNZnO@linux1.krischik.com> References: <1316747.mXveBPtf0Z@linux1.krischik.com> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1055872094 05 15087 BPgJVKIbSNHgDl 030617 17:48:14 X-Complaints-To: usenet-abuse@t-online.de X-ID: Tm9-HkZcZe9j62l25zoGrCfLWGnJXzfE7F4kYgGWf7weg21vjszl8c User-Agent: KNode/0.7.2 Xref: archiver1.google.com comp.lang.ada:39354 Date: 2003-06-17T17:46:11+02:00 List-Id: Ludovic Brenta wrote: > Martin Krischik writes: >> 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. You can compile the libgc.a with GCC 2.8+ as well. You just have to do it yourself then. > 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). That would be to much work for a one man project. > - 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. That is indeed my plan. > - 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. That would be cool since all librarys would become garbage collected. And the Garbage_Collected flag in System.Parameters even suggest that GNAT can work with a garbage collector. However I would need help from someone who knows how to patch GNAT. Also I would not start patching GCC 3.3 before the GCC 3.3 bug I have in the pipeline is solved. With Regards -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com