diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2012-11-08 09:43:39 -0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2012-11-08 09:43:39 -0800 |
commit | 3c56f697e112c79fb5457538fdc373e348beca24 (patch) | |
tree | 91987aa2182421ebead7f3bc3e14ae0effd4ba88 /gcc-4.2.1-5666.3/gcc/doc/languages.texi | |
parent | 8add91f46171be1526e9b37fffcdb7683ad27d77 (diff) | |
download | toolchain_gcc-3c56f697e112c79fb5457538fdc373e348beca24.tar.gz toolchain_gcc-3c56f697e112c79fb5457538fdc373e348beca24.tar.bz2 toolchain_gcc-3c56f697e112c79fb5457538fdc373e348beca24.zip |
Initial checkin of unmodified gcc-5666.3.tar.gz
This is the source to build gcc-4.2 for MacOSX
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
http://opensource.apple.com/tarballs/gcc/gcc-5666.3.tar.gz
Change-Id: I69540223f018e9d07f861fca04bd3833fc138f8b
Diffstat (limited to 'gcc-4.2.1-5666.3/gcc/doc/languages.texi')
-rw-r--r-- | gcc-4.2.1-5666.3/gcc/doc/languages.texi | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gcc-4.2.1-5666.3/gcc/doc/languages.texi b/gcc-4.2.1-5666.3/gcc/doc/languages.texi new file mode 100644 index 000000000..514cb08ec --- /dev/null +++ b/gcc-4.2.1-5666.3/gcc/doc/languages.texi @@ -0,0 +1,36 @@ +@c Copyright (C) 2002 Free Software Foundation, Inc. +@c This is part of the GCC manual. +@c For copying conditions, see the file gcc.texi. + +@node Languages +@chapter Language Front Ends in GCC + +The interface to front ends for languages in GCC, and in particular +the @code{tree} structure (@pxref{Trees}), was initially designed for +C, and many aspects of it are still somewhat biased towards C and +C-like languages. It is, however, reasonably well suited to other +procedural languages, and front ends for many such languages have been +written for GCC@. + +Writing a compiler as a front end for GCC, rather than compiling +directly to assembler or generating C code which is then compiled by +GCC, has several advantages: + +@itemize @bullet +@item GCC front ends benefit from the support for many different +target machines already present in GCC@. +@item GCC front ends benefit from all the optimizations in GCC@. Some +of these, such as alias analysis, may work better when GCC is +compiling directly from source code then when it is compiling from +generated C code. +@item Better debugging information is generated when compiling +directly from source code than when going via intermediate generated C +code. +@end itemize + +Because of the advantages of writing a compiler as a GCC front end, +GCC front ends have also been created for languages very different +from those for which GCC was designed, such as the declarative +logic/functional language Mercury. For these reasons, it may also be +useful to implement compilers created for specialized purposes (for +example, as part of a research project) as GCC front ends. |