52Chapter3 • Compilers and Assemblers
three stages. Stage 1 and stage 2 binaries are deleted as soon as they are no longer needed. Typi-
cally this building process will do the following:
•Build some basic tools like bison, gperf and so on. These tools are necessary to
continue the compilation process.
•Build target tools like gas, ld, binutils and so on.
•Perform a three-stage bootstrap of the compiler.
•Perform comparison of stage 2 and stage 3.
•Build run-time libraries.
•Remove unnecessary files.
You should have enough disk space to build GCC. If you are short of disk space, you can
use the
bootstrap-lean
option on the command line instead of
bootstrap
.
3.2.2.4Final Install
The final installation process is necessary to move GCC binaries under the directory used
as a prefix during the
configure
script execution. We have used
/opt/gcc-3.0.4
as the
prefix directory. Executing the following command in
/gcc3/objdir
will move GCC bina-
ries in a tree structure under
/opt/gcc-3.0.4
.
make install
A typical directory tree after installation is shown below.
[root@conformix gcc-3.0.4]# tree -d |more
.
|-- bin
|-- include
| |-- g++-v3
| | |-- backward
| | |-- bits
| | |-- ext
| | `-- i686-pc-linux-gnu
| | `-- bits
| |-- gcj
| |-- gnu
| | |-- awt
| | | `-- j2d
| | |-- classpath
| | |-- gcj
| | | |-- awt
| | | |-- convert
| | | |-- io
| | | |-- jni
| | | |-- math
| | | |-- protocol
Next Page >>
<< Previous Page
Back to the Table of Contents