2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Contents</title>
|
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>The GCC package contains compilers, preprocessors and the GNU C++
|
|
|
|
Library.</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2><title>Description</title>
|
|
|
|
|
|
|
|
<sect3><title>Compiler</title>
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>A compiler translates source code in text format to a format
|
2001-01-24 00:31:17 +00:00
|
|
|
that a computer understands. After a source code file is compiled into
|
|
|
|
an object file, a linker will create an executable file from one or more
|
2001-09-22 17:09:47 +01:00
|
|
|
of these compiler generated object files.</para></sect3>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-03-29 04:46:06 +01:00
|
|
|
<sect3><title>Preprocessor</title>
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>A preprocessor pre-processes a source file, such as including
|
2001-03-14 19:26:45 +00:00
|
|
|
the contents of header files into the source file. It's a good idea to
|
|
|
|
not
|
|
|
|
do this manually to save a lot of time. Someone just inserts a line
|
2001-03-29 04:46:06 +01:00
|
|
|
like #include <filename>. The preprocessor inserts the
|
2001-01-24 00:31:17 +00:00
|
|
|
contents of that file into the source file. That's one of the things a
|
2001-09-22 17:09:47 +01:00
|
|
|
preprocessor does.</para></sect3>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
<sect3><title>C++ Library</title>
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>The C++ library is used by C++ programs. The C++ library contains
|
2001-01-24 00:31:17 +00:00
|
|
|
functions that are frequently used in C++ programs. This way the
|
|
|
|
programmer doesn't have to write certain functions (such as writing a
|
|
|
|
string of text to the screen) from scratch every time he creates a
|
2001-09-22 17:09:47 +01:00
|
|
|
program.</para></sect3>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|