source: general/prog/gc.xml@ b3bb56b

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since b3bb56b was b3bb56b, checked in by Andrew Benton <andy@…>, 12 years ago

gc-7.2

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10326 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.8 KB
Line 
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
8 "http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-&gc-version;.tar.gz">
9 <!ENTITY gc-download-ftp "&gentoo-ftp-repo;/gc-&gc-version;.tar.gz">
10 <!ENTITY gc-md5sum "d17aecedef3d73e75387fb63558fa4eb">
11 <!ENTITY gc-size "1.3 MB">
12 <!ENTITY gc-buildsize "13 MB">
13 <!ENTITY gc-time "0.2 SBU">
14]>
15
16<sect1 id="gc" xreflabel="GC-&gc-version;">
17 <?dbhtml filename="gc.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>GC-&gc-version;</title>
25
26 <indexterm zone="gc">
27 <primary sortas="a-GC">GC</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to GC</title>
32
33 <para>
34 The <application>GC</application> package contains the Boehm-Demers-Weiser
35 conservative garbage collector, which can be used as a garbage collecting
36 replacement for the C malloc function or C++ new operator. It allows you
37 to allocate memory basically as you normally would, without explicitly
38 deallocating memory that is no longer useful. The collector automatically
39 recycles memory when it determines that it can no longer be otherwise
40 accessed. The collector is also used by a number of programming language
41 implementations that either use C as intermediate code, want to facilitate
42 easier interoperation with C libraries, or just prefer the simple
43 collector interface. Alternatively, the garbage collector may be used as a
44 leak detector for C or C++ programs, though that is not its primary goal.
45 </para>
46
47 &lfs71_checked;
48
49 <bridgehead renderas="sect3">Package Information</bridgehead>
50 <itemizedlist spacing="compact">
51 <listitem>
52 <para>Download (HTTP): <ulink url="&gc-download-http;"/></para>
53 </listitem>
54 <listitem>
55 <para>Download (FTP): <ulink url="&gc-download-ftp;"/></para>
56 </listitem>
57 <listitem>
58 <para>Download MD5 sum: &gc-md5sum;</para>
59 </listitem>
60 <listitem>
61 <para>Download size: &gc-size;</para>
62 </listitem>
63 <listitem>
64 <para>Estimated disk space required: &gc-buildsize;</para>
65 </listitem>
66 <listitem>
67 <para>Estimated build time: &gc-time;</para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect4">Optional</bridgehead>
72 <para role="optional">
73 <xref linkend="libatomic_ops"/> (Gc contains a copy of
74 Libatomic_ops-&gc-version; which it will compile and statically link if
75 configure doesn't find Libatomic_ops installed on your system).
76 </para>
77
78 <para condition="html" role="usernotes">
79 User Notes: <ulink url="&blfs-wiki;/gc"/>
80 </para>
81 </sect2>
82
83 <sect2 role="installation">
84 <title>Installation of GC</title>
85
86 <para>
87 Install <application>GC</application> by running the following commands:
88 </para>
89
90<screen><userinput>sed -i 's#pkgdata#doc#' doc/doc.am &amp;&amp; autoreconf &amp;&amp;
91./configure --prefix=/usr --enable-cplusplus \
92 --disable-static --docdir=/usr/share/doc/gc-&gc-version; &amp;&amp;
93make</userinput></screen>
94
95 <para>To test the results, issue: <command>make check</command>.</para>
96
97 <para>
98 Now, as the <systemitem class="username">root</systemitem> user:
99 </para>
100
101<screen role="root"><userinput>make install &amp;&amp;
102install -v -m644 doc/gc.man /usr/share/man/man3/gc_malloc.3 &amp;&amp;
103ln -sfv gc_malloc.3 /usr/share/man/man3/gc.3 </userinput></screen>
104 </sect2>
105
106 <sect2 role="commands">
107 <title>Command Explanations</title>
108
109 <para>
110 <command>sed -i 's#pkgdata#doc#' doc/doc.am</command>,
111 <command>autoreconf</command> and
112 <option>--docdir=/usr/share/doc/gc-&gc-version;</option>: These commands
113 allow us to install the documentation in a versioned directory.
114 </para>
115
116 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
117 href="../../xincludes/static-libraries.xml"/>
118
119 <para>
120 <parameter>--enable-cplusplus</parameter>: This parameter enables the
121 building and installing the C++ library along with the standard C library.
122 </para>
123 </sect2>
124
125 <sect2 role="content">
126 <title>Contents</title>
127
128 <segmentedlist>
129 <segtitle>Installed Libraries</segtitle>
130 <segtitle>Installed Directories</segtitle>
131
132 <seglistitem>
133 <seg>
134 libcord.so,
135 libgc.so and
136 libgccpp.so
137 </seg>
138 <seg>
139 /usr/include/gc and
140 /usr/share/doc/gc
141 </seg>
142 </seglistitem>
143 </segmentedlist>
144
145 <variablelist>
146 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
147 <?dbfo list-presentation="list"?>
148 <?dbhtml list-presentation="table"?>
149
150 <varlistentry id="libgc">
151 <term><filename class='libraryfile'>libgc.so</filename></term>
152 <listitem>
153 <para>
154 contains a C interface to the conservative garbage collector,
155 primarily designed to replace the C malloc function.
156 </para>
157 <indexterm zone="gc libgc">
158 <primary sortas="c-libgc">libgc.so</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
163 <varlistentry id="libgccpp">
164 <term><filename class='libraryfile'>libgccpp.so</filename></term>
165 <listitem>
166 <para>
167 contains a C++ interface to the conservative garbage collector.
168 </para>
169 <indexterm zone="gc libgccpp">
170 <primary sortas="c-libgccpp">libgccpp.so</primary>
171 </indexterm>
172 </listitem>
173 </varlistentry>
174 </variablelist>
175 </sect2>
176</sect1>
Note: See TracBrowser for help on using the repository browser.