Re: Storage management, was Compiler writers will love this language

Tony Finch <dot@dotat.at>
15 Jul 2003 23:52:43 -0400

          From comp.compilers

Related articles
Compiler writers will love this language ericmuttta@email.com (2003-05-29)
Re: Compiler writers will love this language joachim.durchholz@web.de (Joachim Durchholz) (2003-07-02)
Re: Storage management, was Compiler writers will love this language basile@starynkevitch.net (Basile STARYNKEVITCH) (2003-07-04)
Re: Storage management, was Compiler writers will love this language mwotton@cse.unsw.edu.au (2003-07-13)
Re: Storage management, was Compiler writers will love this langua dot@dotat.at (Tony Finch) (2003-07-15)
Re: Storage management, was Compiler writers will love this langua monnier+comp.compilers/news/@cs-www.cs.yale.edu (Stefan Monnier) (2003-07-17)
Re: Storage management, was Compiler writers will love this langua monnier+comp.compilers/news/@cs-www.cs.yale.edu (Stefan Monnier) (2003-07-17)
| List of all articles for this month |
From: Tony Finch <dot@dotat.at>
Newsgroups: comp.compilers
Date: 15 Jul 2003 23:52:43 -0400
Organization: dotat labs
References: 03-05-211 03-07-005 03-07-048 03-07-079
Keywords: storage
Posted-Date: 15 Jul 2003 23:52:43 EDT

mwotton@cse.unsw.edu.au (Mark Alexander Wotton) wrote:
>
>Sorry, I was being imprecise. From ten thousand feet up, the idea of garbage
>collection is to deallocate memory that is no longer referenced, ie
>out of scope. Whether you do it immediately (reference counting) or later is
>an implementation issue.


Note that there is at least one automatic memory management system
(compile-time region analysis) that can free memory which is still
referenced but which will never be used. A simple example of this is
that you only need the spine of a list to calculate its length, so if
that is all you are going to do to the list then its elements can be
freed early even though they are still referenced.


Tony.
--
f.a.n.finch <dot@dotat.at> http://dotat.at/


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.