* gimple-ssa-store-merging.c (struct store_immediate_info): Add
[official-gcc.git] / gcc / doc / frontends.texi
blob09c2081d20c5994ab9adcccc3c1b299003731c08
1 @c Copyright (C) 1988-2017 Free Software Foundation, Inc.
2 @c This is part of the GCC manual.
3 @c For copying conditions, see the file gcc.texi.
5 @node G++ and GCC
6 @chapter Programming Languages Supported by GCC
8 @cindex GCC
9 @cindex GNU Compiler Collection
10 @cindex GNU C Compiler
11 @cindex Ada
12 @cindex Fortran
13 @cindex Go
14 @cindex Objective-C
15 @cindex Objective-C++
16 GCC stands for ``GNU Compiler Collection''.  GCC is an integrated
17 distribution of compilers for several major programming languages.  These
18 languages currently include C, C++, Objective-C, Objective-C++,
19 Fortran, Ada, Go, and BRIG (HSAIL).
21 The abbreviation @dfn{GCC} has multiple meanings in common use.  The
22 current official meaning is ``GNU Compiler Collection'', which refers
23 generically to the complete suite of tools.  The name historically stood
24 for ``GNU C Compiler'', and this usage is still common when the emphasis
25 is on compiling C programs.  Finally, the name is also used when speaking
26 of the @dfn{language-independent} component of GCC: code shared among the
27 compilers for all supported languages.
29 The language-independent component of GCC includes the majority of the
30 optimizers, as well as the ``back ends'' that generate machine code for
31 various processors.
33 @cindex COBOL
34 @cindex Mercury
35 @cindex Pascal
36 The part of a compiler that is specific to a particular language is
37 called the ``front end''.  In addition to the front ends that are
38 integrated components of GCC, there are several other front ends that
39 are maintained separately.  These support languages such as Pascal,
40 Mercury, and COBOL@.  To use these, they must be built together with
41 GCC proper.
43 @cindex C++
44 @cindex G++
45 @cindex Ada
46 @cindex GNAT
47 Most of the compilers for languages other than C have their own names.
48 The C++ compiler is G++, the Ada compiler is GNAT, and so on.  When we
49 talk about compiling one of those languages, we might refer to that
50 compiler by its own name, or as GCC@.  Either is correct.
52 @cindex compiler compared to C++ preprocessor
53 @cindex intermediate C version, nonexistent
54 @cindex C intermediate output, nonexistent
55 Historically, compilers for many languages, including C++ and Fortran,
56 have been implemented as ``preprocessors'' which emit another high
57 level language such as C@.  None of the compilers included in GCC are
58 implemented this way; they all generate machine code directly.  This
59 sort of preprocessor should not be confused with the @dfn{C
60 preprocessor}, which is an integral feature of the C, C++, Objective-C
61 and Objective-C++ languages.