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