Installation stuff.
[official-gcc.git] / INSTALL / BUILD
blob942ce1b5055cac4c86dfc34b261d42e0c764dbbf
1 Building egcs-1.00
3 Now that egcs is configured, you are ready to build the compiler and runtime
4 libraries. 
6 We highly recommend that egcs be built using gnu-make; other versions make
7 work, then again they might not. To be safe build with gnu-make. 
9 Building a native compiler 
11 For a native build issue the command "make bootstrap". This will build the
12 entire egcs compiler system, which includes the following steps: 
14   *  Build host tools necessary to build the compiler such as texinfo, bison,
15      gperf.
17   *  Build target tools for use by the compiler such as gas, gld, and binutils.
19   *  Perform a 3-stage bootstrap of the compiler.
21   *  Perform a comparison test of the stage2 and stage3 compilers.
23   *  Build runtime libraries using the stage3 compiler from the previous step.
26 If you are short on disk space you might consider "make bootstrap-lean"
27 instead. This is identical to "make bootstrap" except that object files from the
28 stage1 and stage2 of the 3-stage bootstrap of the compiler are deleted as soon
29 as they are no longer needed. Building a cross compiler 
31 We recommend reading the crossgcc FAQ for information about building cross
32 compilers.  (ftp.cygnus.com:pub/crossgcc)
34 For a cross build, issue the command "make cross", which performs the
35 following steps: 
37   *  Build host tools necessary to build the compiler such as texinfo, bison,
38      gperf.
40   *  Build target tools for use by the compiler such as gas, gld, and binutils.
42   *  Build the compiler (single stage only).
44   *  Build runtime libraries using the compiler from the previous step.
46 Note that if an error occurs in any step the make process will exit.