home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / compiler / 1393 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.2 KB

  1. Path: sparky!uunet!wupost!sdd.hp.com!usc!rutgers!faatcrl!iecc!compilers-sender
  2. From: tmb@idiap.ch
  3. Newsgroups: comp.compilers
  4. Subject: Re: Adding garbage collection to C++
  5. Keywords: C, GC
  6. Message-ID: <92-08-092@comp.compilers>
  7. Date: 17 Aug 92 15:57:49 GMT
  8. References: <92-08-052@comp.compilers> <92-08-069@comp.compilers>
  9. Sender: compilers-sender@iecc.cambridge.ma.us
  10. Reply-To: tmb@idiap.ch
  11. Organization: IDIAP (Institut Dalle Molle d'Intelligence Artificielle
  12.     Perceptive)
  13. Lines: 15
  14. Approved: compilers@iecc.cambridge.ma.us
  15.  
  16. fjh@cs.mu.OZ.AU (Fergus Henderson) writes:
  17.  
  18. >[C lets you hide pointers in inconvenient ways, e.g. writing them to
  19. >files or scrambling bytes in unions.]
  20.  
  21. All the locations where a pointer is converted to an integer (via casts,
  22. unions, or memcpy) are detectable by the compiler. For any pointer that
  23. has ever been (mis-)treated in such a way, the corresponding memory can
  24. simply be exempted from garbage collection (e.g., by recording the pointer
  25. in some global table searched by the garbage collector).
  26.  
  27.                     Thomas.
  28. -- 
  29. Send compilers articles to compilers@iecc.cambridge.ma.us or
  30. {ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
  31.