GNU C Compiler Internals/GNU C Compiler Architecture(GNU C编译器内部结构/架构)

tag: cc1, cpp, as, ld, collect2



http://en.wikibooks.org/wiki/GNU_C_Compiler_Internals/GNU_C_Compiler_Architecture

http://en.wikibooks.org/wiki/GNU_C_Compiler_Internals/GNU_C_Compiler_Architecture_4_1

http://en.wikibooks.org/wiki/GNU_C_Compiler_Internals



----------cc1

For a C source file they are the preprocessor and compiler cc1, the assembler as, and the linker collect2. The first and the third programs come with a GCC distribution, the assembler is a part of the GNU binutils package. This book describes the internals of the preprocessor and compiler cc1.

目录:/usr/libexec/gcc/i686-redhat-linux/4.5.1/

[hwx@hwx-laptop-fedora ~]$ ls /usr/libexec/gcc/i686-redhat-linux/4.5.1/
cc1  cc1plus  collect2  lto1  lto-wrapper


----------cpp - The C Preprocessor
/usr/bin/cpp

----------AS - the portable GNU assembler.
/usr/bin/as

----------ld - The GNU linker
/usr/bin/ld

----------gdb - The GNU Debugger

/usr/bin/gdb


----------gcov - coverage testing tool
/usr/bin/gcov


你可能感兴趣的:(c,gcc,compiler,编译器,testing,preprocessor)