2002-09-13 20:31:55 +01:00
|
|
|
<sect1 id="ch02-aboutsbus">
|
|
|
|
<title>About SBUs</title>
|
|
|
|
<?dbhtml filename="aboutsbus.html" dir="chapter02"?>
|
|
|
|
|
2003-09-02 22:59:26 +01:00
|
|
|
<para>Most people would like to know beforehand how long it approximately
|
|
|
|
takes to compile and install each package. But "Linux from Scratch" is built
|
|
|
|
on so many different systems, it is not possible to give actual times that are
|
|
|
|
anywhere near accurate: the biggest package (Glibc) won't take more than
|
|
|
|
twenty minutes on the fastest systems, but will take something like three days
|
|
|
|
on the slowest -- no kidding. So instead of giving actual times, we've come up
|
|
|
|
with the idea of using the <emphasis>Static Binutils Unit</emphasis>
|
|
|
|
(abbreviated to <emphasis>SBU</emphasis>).</para>
|
2002-09-13 20:31:55 +01:00
|
|
|
|
2003-09-02 22:59:26 +01:00
|
|
|
<para>It works like this: the first package you compile in this book is the
|
2004-01-21 23:09:46 +00:00
|
|
|
statically linked Binutils in <xref linkend="chapter05"/>, and the time it
|
2004-01-21 22:15:22 +00:00
|
|
|
takes to compile this package is what we call the "Static Binutils Unit" or
|
|
|
|
"SBU". All other compile times will be expressed relative to this time.</para>
|
2002-09-13 20:31:55 +01:00
|
|
|
|
2003-10-21 01:38:06 +01:00
|
|
|
<para>For example, the time it takes to build the static version of GCC is
|
|
|
|
&gcc-time-tools-pass1;s. This means that if on your system it took 10 minutes
|
|
|
|
to compile and install the static Binutils, then you know it will take
|
|
|
|
approximately 45 minutes to build the static GCC. Fortunately, most build times
|
|
|
|
are much shorter than the one of Binutils.</para>
|
2002-09-13 20:31:55 +01:00
|
|
|
|
2003-10-21 01:38:06 +01:00
|
|
|
<para>Note that if the system compiler on your host is GCC-2 based, the SBUs
|
2003-10-21 03:02:05 +01:00
|
|
|
listed may end up being somewhat understated. This is because the SBU is based
|
|
|
|
on the very first package, compiled with the old GCC, while the rest of the
|
2003-10-21 01:38:06 +01:00
|
|
|
system is compiled with the newer GCC-&gcc-version; which is known to be
|
|
|
|
approximately 30% slower.</para>
|
|
|
|
|
|
|
|
<para>Also note that SBUs don't work well for SMP-based machines. But if you're
|
|
|
|
so lucky as to have multiple processors, chances are that your system is so fast
|
|
|
|
that you won't mind.</para>
|
2002-09-13 20:31:55 +01:00
|
|
|
|
2004-01-19 21:52:33 +00:00
|
|
|
<para>If you wish to see actual timings for specific machines, have a look at
|
|
|
|
<ulink url="http://www.linuxfromscratch.org/~bdubbs/"/>.</para>
|
|
|
|
|
2002-09-13 20:31:55 +01:00
|
|
|
</sect1>
|
|
|
|
|