|
发表于 2006-8-12 22:11:20
|
显示全部楼层
Post by youbest
这里纯属LFS分析,所以没考虑CLFS(不过在我的CLFS2中的分析里也写了一些).
关于bootstrap的作用,我觉得在LFS确实是为了保证gcc是用和自己相同版本编译的原因,因为在整个LFS中三次编译gcc,只有第一次用了bootstrap,那就是因为主系统的版本不确定,而后两次已经能确定gcc的版本一致,所以没有再用bootstrap,如果按照检查是否正确的说法的话,后两次的gcc的作用更重要,却不做bootstrap就说不过去了,所以我认为,bootstrap就是为了在不同的gcc版本编译的时候用的.
恩,不管 CLFS 还是 LFS,我们讨论的是 bootstrap。
bootstrap 的作用:
For a native build issue the command `make bootstrap'. This will build the entire GCC system, which includes the following steps:
1. Build host tools necessary to build the compiler such as texinfo, bison, gperf.
2. Build target tools for use by the compiler such as binutils (bfd, binutils, gas, gprof, ld, and opcodes) if they have been individually linked or moved into the top level GCC source tree before configuring.
3. Perform a 3-stage bootstrap of the compiler.
4. Perform a comparison test of the stage2 and stage3 compilers.
5. Build runtime libraries using the stage3 compiler from the previous step.
所以说,这个不是校正版本用的,只是用来检查。不管版本是否相同。 |
|