Installation stuff.
[official-gcc.git] / INSTALL / build.html
blobe7a9d27a0ce24c1b6baa16bb1a2d08b4eeb9f030
1 <html>
2 <head>
3 <title>Building egcs-1.00 </title>
4 </head>
5 <body bgcolor="white">
6 <h1 align="center">Building egcs-1.00</h1>
8 <p>Now that egcs is configured, you are ready to build the compiler and
9 runtime libraries.
11 <p>We <b>highly</b> recommend that egcs be built using gnu-make; other
12 versions make work, then again they might not. To be safe build with gnu-make.
13 <p>
15 <b>Building a native compiler</b>
16 <p>For a native build issue the command "make bootstrap". This will build
17 the entire egcs compiler system, which includes the following steps:
19 <ul>
20 <li> Build host tools necessary to build the compiler such as texinfo, bison,
21 gperf.<p>
23 <li> Build target tools for use by the compiler such as gas, gld, and
24 binutils.<p>
26 <li> Perform a 3-stage bootstrap of the compiler.<p>
28 <li> Perform a comparison test of the stage2 and stage3 compilers.<p>
30 <li> Build runtime libraries using the stage3 compiler from the previous
31 step.<p>
32 </ul>
34 <p>If you are short on disk space you might consider "make bootstrap-lean"
35 instead. This is identical to "make bootstrap" except that object files
36 from the stage1 and stage2 of the 3-stage bootstrap of the compiler are
37 deleted as soon as they are no longer needed.
39 <b>Building a cross compiler</b>
41 <p> We recommend reading the
42 <a href="ftp://ftp.cygnus.com/pub/embedded/crossgcc/FAQ-0.8.1">
43 crossgcc FAQ</a> for information about building cross compilers.
45 <p>For a cross build, issue the command "make cross", which performs the
46 following steps:
47 <ul>
48 <li> Build host tools necessary to build the compiler such as texinfo, bison,
49 gperf.<p>
51 <li> Build target tools for use by the compiler such as gas, gld, and
52 binutils.<p>
54 <li> Build the compiler (single stage only).<p>
56 <li> Build runtime libraries using the compiler from the previous
57 step.<p>
58 </ul>
60 <p>Note that if an error occurs in any step the make process will exit.
62 <p>
63 <hr>
64 <i>Last modified on December 1, 1997.</i>
66 </body>
67 </html>