Article View: comp.doc.techreports
Article #15UCSC TR: Precompiling C++ for Garbage Collection
From: Jean McKnight
Date: Fri, 07 Aug 1992 18:29
Date: Fri, 07 Aug 1992 18:29
55 lines
3142 bytes
3142 bytes
University of California at Santa Cruz
Baskin Center for Computer Engineering and Information Sciences
The following technical report is available electronically or as
a paper copy. Instructions for getting either follow the abstract.
UCSC-CRL-92-28 (available electronically as ucsc-crl-92-28.ps.Z)
PRECOMPILING C++ FOR GARBAGE COLLECTION
Daniel R. Edelson
June 1992, 19 pages (paper copy $5.00)
Abstract:
Our research is concerned with compiler-independent, efficient and
convenient garbage collection for C++. Most collectors proposed for
C++ have either been implemented in a library or in a compiler. As
an intermediate step between those two, this paper proposes using
precompilation techniques to augment a C++ source program with code
to allow mostly type-accurate garbage collection. There are two key
precompiler transformations. The first is automatic generation of
*smart pointer* classes. The precompiler defines the smart
pointer classes and the user utilizes them instead of raw pointers.
These smart pointers supply functionality that allows the collector to
locate the root set for collection. The second transformation
augments the C++ program with code that allows the garbage collector
to locate internal pointers within objects. This paper describes the
precompiler and the garbage collector. The paper includes a brief
(1500 word) survey of related techniques.
This technical report is available electronically through either
of the following methods:
1. through anonymous ftp from ftp.cse.ucsc.edu, in /pub/tr. Log in
as "anonymous", use your email address as your password, specify
"binary" before getting the file. Uncompress before printing.
2. by mail to automatic mail server rnalib@ftp.cse.ucsc.edu.
Put this command on the subject line or in the body of the message:
@@ send ucsc-crl-92-28.ps.Z from tr
To get the index or abstract list:
@@ send INDEX from tr
@@ send ABSTRACTS.1992 from tr
To get the list of the tr directory:
@@ list tr
To get the list of commands and their syntax:
@@ help commands
Order paper copies from: Technical Library, Baskin Center for Computer
Engineering & Information Sciences, UCSC, Santa Cruz CA 95064.
Purchase orders are not accepted. Checks or money orders must be
for U.S. dollars, payable through a U.S. bank, and made out to
"UC Regents".
Questions: jean@cse.ucsc.edu
===========================================================================
Co-moderator: Richard Golding, Computer & Information Sciences, UC Santa Cruz
compdoc-techreports-request@ftp.cse.ucsc.edu
Technical Details
Message-ID:
<15ugl5INN64h@darkstar.UCSC.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!sun-barr!olivea!hal.com!darkstar.UCSC.EDU!goldingShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!olivea!hal.com!darkstar.UCSC.EDU!golding From: jean@cse.ucsc.edu (Jean McKnight) Newsgroups: comp.doc.techreports Subject: UCSC TR: Precompiling C++ for Garbage Collection Message-ID: <15ugl5INN64h@darkstar.UCSC.EDU> Date: 7 Aug 92 18:29:15 GMT Organization: University of California, Santa Cruz (CE/CIS Boards) Lines: 55 Approved: compdoc-techreports@ftp.cse.ucsc.edu NNTP-Posting-Host: willow.ucsc.edu Originator: golding@willow