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 04:52:18 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.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 13:53:32 +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: 1055850736 reader0.news.skynet.be 284 fa058819/213.190.149.159:57614 X-Complaints-To: abuse@skynet.be Xref: archiver1.google.com comp.lang.ada:39325 Date: 2003-06-17T13:53:32+02:00 List-Id: Preben Randhol writes: > Ludovic Brenta wrote: > > - Only available to people using GCC 3.3 as their compiler, as opposed > > to GNAT 3.15p. > > Which would mean that code written with a GC present won't work well > compiled with other compilers? I mean if you never use Free yourself. Correct, but this IMHO would the programmer's fault, not GCC's. The ARM (13.11.1) says that implementations may provide GC at their option; I suppose that portable programs must be aware of this and always use Free, no matter what, in order to work on all implementations. It is trivial for a GC-enabled implementation to provide a no-op version of Free. Also, appropriate use of pragma Controlled could be required. -- Ludovic Brenta.