|An Introduction to GCC - for the GNU compilers gcc and g++|
by Brian J. Gough, foreword by Richard M. Stallman
Paperback (6"x9"), 144 pages
RRP £12.95 ($19.95)
"A wonderfully thorough guide... well-written, seriously usable information" --- Linux User and Developer Magazine (Issue 40, June 2004) Get a printed copy>>>
11.2 The preprocessor
The first stage of the compilation process is the use of the preprocessor to expand macros and included header files. To perform this stage, GCC executes the following command:(35)
$ cpp hello.c > hello.i
The result is a file ‘hello.i’ which contains the source code with
all macros expanded. By convention, preprocessed files are given the
file extension ‘.i’ for C programs and ‘.ii’ for C++ programs.
In practice, the preprocessed file is not saved to disk unless the
-save-temps option is used.
|ISBN 0954161793||An Introduction to GCC - for the GNU compilers gcc and g++||See the print edition|