This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Of Bounties and Mercenaries


On Apr  6, 2004, "Stephan T. Lavavej" <stl@caltech.edu> wrote:

> In C++, you can use Resource Acquisition Is Initialization (RAII).

Sure.  That, along with reference-counted pointers, can take care of
*some* cases in which you'd like to release memory.  It doesn't take
care of cycles, though, and they're quite pervasive in GCC.  Besides,
garbage collection can actually be more efficient than reference
counting, if it's done well.

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]