Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

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.


 
 
  Published under the terms of the GNU General Public License Design by Interspire