1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/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 "&gentoo-ftp-repo;/gc-&gc-version;.tar.gz">
|
---|
9 | <!ENTITY gc-md5sum "2ff9924c7249ef7f736ecfe6f08f3f9b">
|
---|
10 | <!ENTITY gc-size "1 MB">
|
---|
11 | <!ENTITY gc-buildsize "13 MB">
|
---|
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 | &lfs70_checked;
|
---|
46 |
|
---|
47 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
48 | <itemizedlist spacing="compact">
|
---|
49 | <listitem>
|
---|
50 | <para>Download (HTTP): <ulink url="&gc-download-http;"/></para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Download (FTP): <ulink url="&gc-download-ftp;"/></para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Download MD5 sum: &gc-md5sum;</para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>Download size: &gc-size;</para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>Estimated disk space required: &gc-buildsize;</para>
|
---|
63 | </listitem>
|
---|
64 | <listitem>
|
---|
65 | <para>Estimated build time: &gc-time;</para>
|
---|
66 | </listitem>
|
---|
67 | </itemizedlist>
|
---|
68 |
|
---|
69 | <para condition="html" role="usernotes">User Notes:
|
---|
70 | <ulink url="&blfs-wiki;/gc"/></para>
|
---|
71 |
|
---|
72 | </sect2>
|
---|
73 |
|
---|
74 | <sect2 role="installation">
|
---|
75 | <title>Installation of GC</title>
|
---|
76 |
|
---|
77 | <para>Install <application>GC</application> by running the following
|
---|
78 | commands:</para>
|
---|
79 |
|
---|
80 | <screen><userinput>./configure --prefix=/usr \
|
---|
81 | --datadir=/usr/share/doc \
|
---|
82 | --enable-cplusplus &&
|
---|
83 | make</userinput></screen>
|
---|
84 |
|
---|
85 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
86 |
|
---|
87 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
88 |
|
---|
89 | <screen role="root"><userinput>make install &&
|
---|
90 | install -v -m644 doc/gc.man /usr/share/man/man3/gc_malloc.3 &&
|
---|
91 | ln -v -s gc_malloc.3 /usr/share/man/man3/gc.3 </userinput></screen>
|
---|
92 |
|
---|
93 | </sect2>
|
---|
94 |
|
---|
95 | <sect2 role="commands">
|
---|
96 | <title>Command Explanations</title>
|
---|
97 |
|
---|
98 | <para><parameter>--datadir=/usr/share/doc</parameter>: This parameter
|
---|
99 | changes the installation path of the documentation to
|
---|
100 | <filename class='directory'>/usr/share/doc/gc</filename> instead of
|
---|
101 | <filename class='directory'>/usr/share/gc</filename>.</para>
|
---|
102 |
|
---|
103 | <para><parameter>--enable-cplusplus</parameter>: This parameter forces
|
---|
104 | the building and installation of the C++ library along with the standard
|
---|
105 | C library.</para>
|
---|
106 |
|
---|
107 | </sect2>
|
---|
108 |
|
---|
109 | <sect2 role="content">
|
---|
110 | <title>Contents</title>
|
---|
111 |
|
---|
112 | <segmentedlist>
|
---|
113 | <segtitle>Installed Programs</segtitle>
|
---|
114 | <segtitle>Installed Libraries</segtitle>
|
---|
115 | <segtitle>Installed Directories</segtitle>
|
---|
116 |
|
---|
117 | <seglistitem>
|
---|
118 | <seg>None</seg>
|
---|
119 | <seg>libcord.{a,so}, libgc.{so,a}, and libgccpp.{so,a}</seg>
|
---|
120 | <seg>/usr/include/gc and /usr/share/doc/gc</seg>
|
---|
121 | </seglistitem>
|
---|
122 | </segmentedlist>
|
---|
123 |
|
---|
124 | <variablelist>
|
---|
125 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
126 | <?dbfo list-presentation="list"?>
|
---|
127 | <?dbhtml list-presentation="table"?>
|
---|
128 |
|
---|
129 | <varlistentry id="libgc">
|
---|
130 | <term><filename class='libraryfile'>libgc.{so,a}</filename></term>
|
---|
131 | <listitem>
|
---|
132 | <para>contains a C interface to the conservative garbage collector,
|
---|
133 | primarily designed to replace the C malloc function.</para>
|
---|
134 | <indexterm zone="gc libgc">
|
---|
135 | <primary sortas="c-libgc">libgc.{so,a}</primary>
|
---|
136 | </indexterm>
|
---|
137 | </listitem>
|
---|
138 | </varlistentry>
|
---|
139 |
|
---|
140 | <varlistentry id="libgccpp">
|
---|
141 | <term><filename class='libraryfile'>libgccpp.{so,a}</filename></term>
|
---|
142 | <listitem>
|
---|
143 | <para>contains a C++ interface to the conservative garbage
|
---|
144 | collector.</para>
|
---|
145 | <indexterm zone="gc libgccpp">
|
---|
146 | <primary sortas="c-libgccpp">libgccpp.{so,a}</primary>
|
---|
147 | </indexterm>
|
---|
148 | </listitem>
|
---|
149 | </varlistentry>
|
---|
150 |
|
---|
151 | </variablelist>
|
---|
152 |
|
---|
153 | </sect2>
|
---|
154 |
|
---|
155 | </sect1>
|
---|