source: general/prog/gc.xml@ 6831cce

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 6831cce was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 18 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

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