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.
Download (HTTP): http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc6.8.tar.gz
Download (FTP): ftp://ftp.linux.ee/pub/gentoo/distfiles/distfiles/gc6.8.tar.gz
Download MD5 sum: 418d38bd9c66398386a372ec0435250e
Download size: 739 KB
Estimated disk space required: 7.1 MB
Estimated build time: 0.2 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/gc
Install GC by running the following commands:
sed -i "s|\$(datadir)/@PACKAGE@|&-6.8|" 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
sed -i
"s|\$(datadir)/@PACKAGE@|&-6.8|" ...: This
command appends “-6.8” 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.
Last updated on 2007-07-14 18:27:07 -0500