2.2.3 Using Multiple Source Files
2.3 Compiling With Different Compiler Versions
2.4.2 Separate Compiling and Linking
2.4.3 Consistent Compiling and Linking
2.4.4 Compiling for 64-Bit Memory Model
2.4.5 Compiler Command-Line Diagnostics
2.4.6 Understanding the Compiler Organization
2.5 Preprocessing Directives and Names
2.5.2 Macros With a Variable Number of Arguments
2.6.3 Control of Virtual Memory
2.7 Using the strip Command with C++ Objects
2.8.1 Using Aliases Within the C Shell
2.8.2 Using CCFLAGS to Specify Compile Options
2.8.3.1 Using CCFLAGS Within make
3. Using the C++ Compiler Options
6. Creating and Using Templates
9. Improving Program Performance
10. Building Multithreaded Programs
12. Using The C++ Standard Library
13. Using the Classic iostream Library
This chapter describes how to use the C++ compiler.
The principal use of any compiler is to transform a program written in a high-level language like C++ into a data file that is executable by the target computer hardware. You can use the C++ compiler to do the following:
Transform source files into relocatable binary (.o) files, to be linked later into an executable file, a static (archive) library (.a) file (using-xar), or a dynamic (shared) library (.so) file
Link or relink object files or library files (or both) into an executable file
Compile an executable file with runtime debugging enabled (-g)
Compile an executable file with runtime statement or procedure-level profiling (-pg)