home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / compiler / 1369 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.5 KB  |  32 lines

  1. Newsgroups: comp.compilers
  2. Path: sparky!uunet!usc!rpi!think.com!spdcc!iecc!compilers-sender
  3. From: kelvin@kickapoo.cs.iastate.edu (Kelvin Don Nilsen)
  4. Subject: Re: Adding garbage collection to C++
  5. Reply-To: kelvin@kickapoo.cs.iastate.edu (Kelvin Don Nilsen)
  6. Organization: Iowa State University, Ames IA
  7. Date: Thu, 13 Aug 1992 10:26:37 GMT
  8. Approved: compilers@iecc.cambridge.ma.us
  9. Message-ID: <92-08-068@comp.compilers>
  10. References: <92-08-044@comp.compilers> <92-08-052@comp.compilers>
  11. Keywords: C++, GC
  12. Sender: compilers-sender@iecc.cambridge.ma.us
  13. Lines: 17
  14.  
  15. >[I'd be interested how you trace through unions containing pointers. -John]
  16.  
  17. We have implemented copying garbage collection for the C++ language
  18. standard, making only a few minor restrictions on normal C++ usage.  We
  19. are able, for example, to compile Gnu groff by fixing fewer than five
  20. "sloppy" programming tricks.  We handle unions that may contain either
  21. pointers or raw seething bits by adding an explicit tag to distinguish
  22. between the two.  Each assignment to one of these unions incurs the cost
  23. of updating the tag.  We do not check the tag on reads.  Further, we do
  24. not update the tag if the union is known always to contain pointers, or
  25. always to contain raw seething bits.
  26.  
  27. Kelvin Nilsen/Dept. of Computer Science/Iowa State University/Ames, IA  50011 
  28.  (515) 294-2259   kelvin@cs.iastate.edu  uunet!kelvin@cs.iastate.edu
  29. -- 
  30. Send compilers articles to compilers@iecc.cambridge.ma.us or
  31. {ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
  32.