gcc Source Code的SVN库路径为:svn://gcc.gnu.org/svn/gcc/trunk
代码的Top Level包括其他runtime libraries和gcc本身代码。
runtime libraries有:boehm-gc,contrib,fastjar 等
gcc本身代码目录:/gcc
/gcc子目录:
config:配置文件
doc:代码文档,可产生html文档
ginclude:gcc所包含的系统头文件?
po:消息目录?
testsuite:测试用例
6.2 Top Level Source Directory
The top level source directory in a GCC distribution contains several files and directories that are shared with other software distributions such as that of GNU Binutils. It also contains several subdirectories that contain parts of GCC and its runtime libraries:
- boehm-gc
- The Boehm conservative garbage collector, used as part of the Java runtime library.
- contrib
- Contributed scripts that may be found useful in conjunction with GCC. One of these, contrib/texi2pod.pl, is used to generate man pages from Texinfo manuals as part of the GCC build process.
- fastjar
- An implementation of the jar command, used with the Java front end.
- fixincludes
- The support for fixing system headers to work with GCC. See fixincludes/README for more information. The headers fixed by this mechanism are installed in libsubdir/include-fixed. Along with those headers, README-fixinc is also installed, as libsubdir/include-fixed/README.
- gcc
- The main sources of GCC itself (except for runtime libraries), including optimizers, support for different target architectures, language front ends, and testsuites. See The gcc Subdirectory, for details.
- include
- Headers for the
libiberty
library. - intl
- GNU
libintl
, from GNUgettext
, for systems which do not include it in libc. - libada
- The Ada runtime library.
- libcpp
- The C preprocessor library.
- libgfortran
- The Fortran runtime library.
- libffi
- The
libffi
library, used as part of the Java runtime library. - libiberty
- The
libiberty
library, used for portability and for some generally useful data structures and algorithms. See Introduction, for more information about this library. - libjava
- The Java runtime library.
- libmudflap
- The
libmudflap
library, used for instrumenting pointer and array dereferencing operations. - libobjc
- The Objective-C and Objective-C++ runtime library.
- libstdc++-v3
- The C++ runtime library.
- maintainer-scripts
- Scripts used by the
gccadmin
account ongcc.gnu.org
. - zlib
- The
zlib
compression library, used by the Java front end and as part of the Java runtime library.
The build system in the top level directory, including how recursion into subdirectories works and how building runtime libraries for multilibs is handled, is documented in a separate manual, included with GNU Binutils. See GNU configure and build system, for details.
6.3 The gcc Subdirectory
The gcc directory contains many files that are part of the C sources of GCC, other files used as part of the configuration and build process, and subdirectories including documentation and a testsuite. The files that are sources of GCC are documented in a separate chapter. See Passes and Files of the Compiler.