[3bbd5fe9] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY gc-download-http "http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc&gc-version;.tar.gz">
|
---|
| 8 | <!ENTITY gc-download-ftp "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/gc&gc-version;.tar.gz">
|
---|
[fb2079c] | 9 | <!ENTITY gc-md5sum "c7c301e8fab8ce152c908b05bc8d452c">
|
---|
| 10 | <!ENTITY gc-size "744 KB">
|
---|
| 11 | <!ENTITY gc-buildsize "7.1 MB">
|
---|
[3bbd5fe9] | 12 | <!ENTITY gc-time "0.2 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="gc" xreflabel="GC-&gc-version;">
|
---|
| 16 | <?dbhtml filename="gc.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>GC-&gc-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="gc">
|
---|
| 26 | <primary sortas="a-GC">GC</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to GC</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>GC</application> package contains the
|
---|
| 33 | Boehm-Demers-Weiser conservative garbage collector, which can be used as a
|
---|
| 34 | garbage collecting replacement for the C malloc function or C++ new
|
---|
| 35 | operator. It allows you to allocate memory basically as you normally would,
|
---|
| 36 | without explicitly deallocating memory that is no longer useful. The
|
---|
| 37 | collector automatically recycles memory when it determines that it can no
|
---|
| 38 | longer be otherwise accessed. The collector is also used by a number of
|
---|
| 39 | programming language implementations that either use C as intermediate
|
---|
| 40 | code, want to facilitate easier interoperation with C libraries, or just
|
---|
| 41 | prefer the simple collector interface. Alternatively, the garbage collector
|
---|
| 42 | may be used as a leak detector for C or C++ programs, though that is not
|
---|
| 43 | its primary goal.</para>
|
---|
| 44 |
|
---|
| 45 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 46 | <itemizedlist spacing="compact">
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download (HTTP): <ulink url="&gc-download-http;"/></para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download (FTP): <ulink url="&gc-download-ftp;"/></para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Download MD5 sum: &gc-md5sum;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Download size: &gc-size;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Estimated disk space required: &gc-buildsize;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>Estimated build time: &gc-time;</para>
|
---|
| 64 | </listitem>
|
---|
| 65 | </itemizedlist>
|
---|
| 66 |
|
---|
[1039de3] | 67 | <para condition="html" role="usernotes">User Notes:
|
---|
| 68 | <ulink url="&blfs-wiki;/gc"/></para>
|
---|
| 69 |
|
---|
[3bbd5fe9] | 70 | </sect2>
|
---|
| 71 |
|
---|
| 72 | <sect2 role="installation">
|
---|
| 73 | <title>Installation of GC</title>
|
---|
| 74 |
|
---|
| 75 | <para>Install <application>GC</application> by running the following
|
---|
| 76 | commands:</para>
|
---|
| 77 |
|
---|
[4d2fd6f3] | 78 | <screen><userinput>sed -i "s|\$(datadir)/@PACKAGE@|&-&gc-version;|" doc/Makefile.in &&
|
---|
[3bbd5fe9] | 79 | ./configure --prefix=/usr \
|
---|
| 80 | --datadir=/usr/share/doc --enable-cplusplus &&
|
---|
| 81 | make</userinput></screen>
|
---|
| 82 |
|
---|
| 83 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 84 |
|
---|
| 85 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 86 |
|
---|
| 87 | <screen role="root"><userinput>make install &&
|
---|
| 88 | install -v -m644 doc/gc.man /usr/share/man/man3/gc_malloc.3 &&
|
---|
| 89 | ln -v -s gc_malloc.3 /usr/share/man/man3/gc.3</userinput></screen>
|
---|
| 90 |
|
---|
| 91 | </sect2>
|
---|
| 92 |
|
---|
| 93 | <sect2 role="commands">
|
---|
| 94 | <title>Command Explanations</title>
|
---|
| 95 |
|
---|
[4d2fd6f3] | 96 | <para><command>sed -i "s|\$(datadir)/@PACKAGE@|&-&gc-version;|" ...</command>:
|
---|
| 97 | This command appends <quote>-&gc-version;</quote> to the default documentation
|
---|
[3bbd5fe9] | 98 | installation path of
|
---|
| 99 | <filename class='directory'>/usr/share/doc/gc</filename>.</para>
|
---|
| 100 |
|
---|
| 101 | <para><parameter>--datadir=/usr/share/doc</parameter>: This parameter
|
---|
| 102 | changes the installation path of the documentation to
|
---|
| 103 | <filename class='directory'>/usr/share/doc/gc</filename> instead of
|
---|
| 104 | <filename class='directory'>/usr/share/gc</filename>.</para>
|
---|
| 105 |
|
---|
| 106 | <para><parameter>--enable-cplusplus</parameter>: This parameter forces
|
---|
| 107 | the building and installation of the C++ library along with the standard
|
---|
| 108 | C library.</para>
|
---|
| 109 |
|
---|
| 110 | </sect2>
|
---|
| 111 |
|
---|
| 112 | <sect2 role="content">
|
---|
| 113 | <title>Contents</title>
|
---|
| 114 |
|
---|
| 115 | <segmentedlist>
|
---|
| 116 | <segtitle>Installed Programs</segtitle>
|
---|
| 117 | <segtitle>Installed Libraries</segtitle>
|
---|
| 118 | <segtitle>Installed Directories</segtitle>
|
---|
| 119 |
|
---|
| 120 | <seglistitem>
|
---|
| 121 | <seg>None</seg>
|
---|
[1039de3] | 122 | <seg>libgc.{so,a} and libgccpp.{so,a}</seg>
|
---|
[3bbd5fe9] | 123 | <seg>/usr/include/gc and /usr/share/doc/gc-&gc-version;</seg>
|
---|
| 124 | </seglistitem>
|
---|
| 125 | </segmentedlist>
|
---|
| 126 |
|
---|
| 127 | <variablelist>
|
---|
| 128 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 129 | <?dbfo list-presentation="list"?>
|
---|
| 130 | <?dbhtml list-presentation="table"?>
|
---|
| 131 |
|
---|
| 132 | <varlistentry id="libgc">
|
---|
[1039de3] | 133 | <term><filename class='libraryfile'>libgc.{so,a}</filename></term>
|
---|
[3bbd5fe9] | 134 | <listitem>
|
---|
| 135 | <para>contains a C interface to the conservative garbage collector,
|
---|
| 136 | primarily designed to replace the C malloc function.</para>
|
---|
| 137 | <indexterm zone="gc libgc">
|
---|
[1039de3] | 138 | <primary sortas="c-libgc">libgc.{so,a}</primary>
|
---|
[3bbd5fe9] | 139 | </indexterm>
|
---|
| 140 | </listitem>
|
---|
| 141 | </varlistentry>
|
---|
| 142 |
|
---|
| 143 | <varlistentry id="libgccpp">
|
---|
[1039de3] | 144 | <term><filename class='libraryfile'>libgccpp.{so,a}</filename></term>
|
---|
[3bbd5fe9] | 145 | <listitem>
|
---|
| 146 | <para>contains a C++ interface to the conservative garbage
|
---|
| 147 | collector.</para>
|
---|
| 148 | <indexterm zone="gc libgccpp">
|
---|
[1039de3] | 149 | <primary sortas="c-libgccpp">libgccpp.{so,a}</primary>
|
---|
[3bbd5fe9] | 150 | </indexterm>
|
---|
| 151 | </listitem>
|
---|
| 152 | </varlistentry>
|
---|
| 153 |
|
---|
| 154 | </variablelist>
|
---|
| 155 |
|
---|
| 156 | </sect2>
|
---|
| 157 |
|
---|
| 158 | </sect1>
|
---|