1 | <sect2><title>Contents of GCC</title>
|
---|
2 |
|
---|
3 | <para>Last checked against version &gcc-contversion;.</para>
|
---|
4 |
|
---|
5 | <sect3><title>Program Files</title>
|
---|
6 | <para>c++, c++filt, cc (link to gcc), cc1, cc1plus, collect2, cpp, cpp0,
|
---|
7 | g++, gcc, gcov, protoize and unprotoize</para></sect3>
|
---|
8 |
|
---|
9 | <sect3><title>Descriptions</title>
|
---|
10 |
|
---|
11 | <sect4><title>cc, cc1, cc1plus, gcc</title>
|
---|
12 | <para>These are the C compiler. A compiler translates source code in
|
---|
13 | text format to a format that a computer understands. After a source code
|
---|
14 | file is compiled into an object file, a linker will create an executable
|
---|
15 | file from one or more of these compiler generated object files.</para></sect4>
|
---|
16 |
|
---|
17 | <sect4><title>c++, cc1plus, g++</title>
|
---|
18 | <para>These are the C++ compiler; the equivalent of cc and
|
---|
19 | gcc etc.</para></sect4>
|
---|
20 |
|
---|
21 | <sect4><title>c++filt</title>
|
---|
22 | <para>c++filt is used to demangle C++ symbols.</para></sect4>
|
---|
23 |
|
---|
24 | <sect4><title>collect2</title>
|
---|
25 | <para>collect2 assists with the compilation of constructors.</para></sect4>
|
---|
26 |
|
---|
27 | <sect4><title>cpp, cpp0</title>
|
---|
28 | <para>cpp pre-processes a source file, such as including
|
---|
29 | the contents of header files into the source file. It's a good idea to
|
---|
30 | not do this manually to save a lot of time. Someone just inserts a line
|
---|
31 | like #include <filename>. The preprocessor inserts the
|
---|
32 | contents of that file into the source file. That's one of the things a
|
---|
33 | preprocessor does.</para></sect4>
|
---|
34 |
|
---|
35 | <sect4><title>gcov</title>
|
---|
36 | <para>gcov analyzes programs to help create more efficient, faster running
|
---|
37 | code through optimization.</para></sect4>
|
---|
38 |
|
---|
39 | <sect4><title>protoize</title>
|
---|
40 | <para>protoize converts old-style pre-ANSI
|
---|
41 | functions or definitions to new-style ANSI C prototypes (the default file
|
---|
42 | for looking known ones up is
|
---|
43 | <filename>/usr/lib/gcc-lib/<arch>/<version>/SYSCALLS.c.X</filename>).</para></sect4>
|
---|
44 |
|
---|
45 | <sect4><title>unprotoize</title>
|
---|
46 | <para>unprotoize converts prototypes
|
---|
47 | back to the original old-style pre-ANSI functions, doing a correct
|
---|
48 | job only when they were converted with protoize.</para></sect4>
|
---|
49 |
|
---|
50 | </sect3>
|
---|
51 |
|
---|
52 | <sect3><title>Library Files</title>
|
---|
53 | <para>libgcc.a, libiberty.a, libstdc++.[a,so]</para>
|
---|
54 |
|
---|
55 | <sect4><title>libgcc</title>
|
---|
56 | <para>libgcc.a is a run-time support file for gcc. Most of the time, on most
|
---|
57 | machines, libgcc.a is not actually necessary.</para></sect4>
|
---|
58 |
|
---|
59 | <sect4><title>libiberty</title>
|
---|
60 | <para>libiberty is a collection of subroutines used by various GNU
|
---|
61 | programs including getopt, obstack, strerror, strtol and strtoul.</para></sect4>
|
---|
62 |
|
---|
63 | <sect4><title>libstdc++</title>
|
---|
64 | <para>libstdc++ is the C++ library. It is used by C++ programs and contains
|
---|
65 | functions that are frequently used in C++ programs. This way the
|
---|
66 | programmer doesn't have to write certain functions (such as writing a
|
---|
67 | string of text to the screen) from scratch every time he creates a
|
---|
68 | program.</para></sect4>
|
---|
69 |
|
---|
70 | </sect3>
|
---|
71 |
|
---|
72 | </sect2>
|
---|
73 |
|
---|