home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,671 of 2,753   
   Florian Stock to Matthias-Christian Ott   
   Re: Static Garbage Collection   
   26 May 09 11:23:41   
   
   From: stock@esa.informatik.tu-darmstadt.de   
      
   Matthias-Christian Ott  writes:   
      
   > Hi,   
   > today I stumbled upon a very intresting problem on garbage collection:   
   >   
   > Suppose we have a goto-free, pointer-less, static strongly typed   
   > programming language without any binary libraries (so all source code   
   > is available at compile time).   
   >   
   > Then we could construct the control flow graph for the entire programme.   
   >   
   > Couldn't we than statically (of course depending on conditions during   
   > runtime) determine the locations for the appropriate malloc() and free()   
   > calls, depending on if a referenced object is no longer used?   
      
   Just a stupid question: If you dont have pointers, why you need malloc   
   and free? In my eyes you dont need any dynamic memory ( under your   
   premises).   
      
   Florian   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca