www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/22/02:53:04

Date: Sun, 22 Dec 1996 09:33:46 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Alaric B. Williams" <alaric AT abwillms DOT demon DOT co DOT uk>
cc: djgpp AT delorie DOT com
Subject: Re: windows <-> cwsdpmi
In-Reply-To: <851033912.16327.1@abwillms.demon.co.uk>
Message-ID: <Pine.SUN.3.91.961222093037.29376J-100000@is>
MIME-Version: 1.0

On Thu, 19 Dec 1996, Alaric B. Williams wrote:

> an implementation of garbage collection that can be turned on at 
compile time would be nice, too...

I don't see how a garbage collecting could be built into a 
general-purpose memory allocator of a C library.  Since in C, every 
pointer is just an address of a memory chunk, how would you relocate data 
(to compact used memory) without breaking C code?  IMHO, there's no 
simple way to even know which pointers are unused and can be freed.  
Maybe in C++, but not in C.  Do I miss something?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019