/[gentoo]/xml/htdocs/doc/en/handbook/hb-working-features.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-working-features.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.4
1<!-- The content of this document is licensed under the CC-BY-SA license --> 1<!-- The content of this document is licensed under the CC-BY-SA license -->
2<!-- See http://creativecommons.org/licenses/by-sa/1.0 --> 2<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
3 3
4<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-features.xml,v 1.3 2003/11/28 07:32:38 swift Exp $ --> 4<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-features.xml,v 1.4 2003/11/28 16:15:53 swift Exp $ -->
5 5
6<sections> 6<sections>
7<section> 7<section>
8<title>DistCC</title> 8<title>DistCC</title>
9<subsection> 9<subsection>
112 112
113</body> 113</body>
114</subsection> 114</subsection>
115</section> 115</section>
116<section> 116<section>
117<title>cCache</title> 117<title>ccache</title>
118<subsection> 118<subsection>
119<title>What is cCache?</title> 119<title>What is ccache?</title>
120<body>
121
122</body> 120<body>
123</subsection> 121
122<p>
123<c>ccache</c> is a fast compiler cache. When you compile a program, it will
124cache intermediate results so that, when you ever recompile the same program,
125the compilation time is greatly reduced. In common compilations this can result
126in 5 to 10 times faster compilation times.
127</p>
128
129<p>
130If you are interested in the ins and outs of <c>ccache</c>, please visit the
131<uri link="http://ccache.samba.org">ccache homepage</uri>.
132</p>
133
134</body>
124<subsection> 135</subsection>
136<subsection>
125<title>Installing cCache</title> 137<title>Installing ccache</title>
126<body> 138<body>
139
140<p>
141Installing <c>ccache</c> with Gentoo is a breeze. Just emerge it and you're done
142:)
143</p>
144
145<pre caption="Installing ccache">
146# <i>emerge ccache</i>
147</pre>
127 148
128</body> 149</body>
129</subsection> 150</subsection>
130<subsection> 151<subsection>
131<title>Activating Portage Support</title> 152<title>Activating Portage Support</title>
132<body> 153<body>
154
155<p>
156First, edit <path>/etc/make.conf</path> and alter the <c>FEATURES</c> variable
157so that it contains the <c>ccache</c> keyword:
158</p>
159
160<pre caption="Editing FEATURES in /etc/make.conf">
161FEATURES="ccache"
162</pre>
163
164<p>
165Next, edit (or create) the <c>CCACHE_SIZE</c> variable (also in
166<path>/etc/make.conf</path>) so it contains the amount of diskspace you want to
167sacrifice for <c>ccache</c>:
168</p>
169
170<pre caption="Editing CCACHE_SIZE in /etc/make.conf">
171CCACHE_SIZE="2G"
172</pre>
173
174<p>
175As of now, Portage will use <c>ccache</c> to speed up compilations where
176possible. If you are uncertain that <c>ccache</c> works, you can run <c>ccache
177-s</c> to view the <c>ccache</c> statistics:
178</p>
179
180<pre caption="Viewing ccache statistics">
181# <i>ccache -s</i>
182</pre>
133 183
134</body> 184</body>
135</subsection> 185</subsection>
136</section> 186</section>
137<section> 187<section>

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20