%general-entities; ]> $LastChangedBy$ $Date$ GC-&gc-version; GC Introduction to GC The GC package contains the Boehm-Demers-Weiser conservative garbage collector, which can be used as a garbage collecting replacement for the C malloc function or C++ new operator. It allows you to allocate memory basically as you normally would, without explicitly deallocating memory that is no longer useful. The collector automatically recycles memory when it determines that it can no longer be otherwise accessed. The collector is also used by a number of programming language implementations that either use C as intermediate code, want to facilitate easier interoperation with C libraries, or just prefer the simple collector interface. Alternatively, the garbage collector may be used as a leak detector for C or C++ programs, though that is not its primary goal. &lfs67_built; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &gc-md5sum; Download size: &gc-size; Estimated disk space required: &gc-buildsize; Estimated build time: &gc-time; User Notes: Installation of GC Install GC by running the following commands: sed -i "s|\$(datadir)/@PACKAGE@|&-&gc-version;|" doc/Makefile.in && ./configure --prefix=/usr \ --datadir=/usr/share/doc --enable-cplusplus && make To test the results, issue: make check. Now, as the root user: make install && install -v -m644 doc/gc.man /usr/share/man/man3/gc_malloc.3 && ln -v -s gc_malloc.3 /usr/share/man/man3/gc.3 Command Explanations sed -i "s|\$(datadir)/@PACKAGE@|&-&gc-version;|" ...: This command appends -&gc-version; to the default documentation installation path of /usr/share/doc/gc. --datadir=/usr/share/doc: This parameter changes the installation path of the documentation to /usr/share/doc/gc instead of /usr/share/gc. --enable-cplusplus: This parameter forces the building and installation of the C++ library along with the standard C library. Contents Installed Programs Installed Libraries Installed Directories None libgc.{so,a} and libgccpp.{so,a} /usr/include/gc and /usr/share/doc/gc-&gc-version; Short Descriptions libgc.{so,a} contains a C interface to the conservative garbage collector, primarily designed to replace the C malloc function. libgc.{so,a} libgccpp.{so,a} contains a C++ interface to the conservative garbage collector. libgccpp.{so,a}