Newsgroups: | comp.compilers |
From: | tmb@idiap.ch |
Organization: | IDIAP (Institut Dalle Molle d'Intelligence Artificielle Perceptive) |
Date: | Mon, 17 Aug 1992 15:57:49 GMT |
References: | 92-08-052 92-08-069 |
Keywords: | C, GC |
fjh@cs.mu.OZ.AU (Fergus Henderson) writes:
>[C lets you hide pointers in inconvenient ways, e.g. writing them to
>files or scrambling bytes in unions.]
All the locations where a pointer is converted to an integer (via casts,
unions, or memcpy) are detectable by the compiler. For any pointer that
has ever been (mis-)treated in such a way, the corresponding memory can
simply be exempted from garbage collection (e.g., by recording the pointer
in some global table searched by the garbage collector).
Thomas.
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.