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-Thread: 103376,a0d66e40cda260bb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!news.hispeed.ch!linux2.krischik.com!news From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Memeory management Date: Thu, 22 Sep 2005 19:11:11 +0200 Organization: Cablecom Newsserver Message-ID: <59346899.OiYf4XpetV@linux1.krischik.com> References: <1125951895.357358.320220@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: 84-73-3-68.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.hispeed.ch 1127410215 10225 84.73.3.68 (22 Sep 2005 17:30:15 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Thu, 22 Sep 2005 17:30:15 +0000 (UTC) User-Agent: KNode/0.9.2 Xref: g2news1.google.com comp.lang.ada:5039 Date: 2005-09-22T19:11:11+02:00 List-Id: adaworks@sbcglobal.net wrote: > > wrote in message > news:naidnWP4ToNgJoHeRVn-2g@comcast.com... >> >> If you allocate explicitly from the heap using access types (pointers) >> and "new" then the Ada specification does not say whether the >> implementation must do automatic garbage collection or not. Most don't, >> > Because Ada does not prohibit automatic garbage collection, it would seem > like a good idea to have it as a compile-time option in a well-designed > compiler. Yes, it is a lot of work, but for most programs, not > safety-critical, > and running under a commercial OS, it would make sense. Well I had a go on this allready: http://adacl.sourceforge.net/pmwiki.php/Main/GarbageCollector Using storrage pools is actually better then compiler options - sure more typing work - but what happens if GC and non-GC packages are linked with each other? The only thing what bothers me is finalisation - with lots of GNAT source browsing and intermediate code listing I got it implemented - but I it would be better if GC storrage pools where incorporated right into the compiler . Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com