Creating Precompiled Header Files
The Microsoft C and C++ compilers provide options for precompiling any C or C++ code, including inline code. Using this performance feature, you can compile a stable body of code, store the compiled state of the code in a file, and, during subsequent compilations, combine the precompiled code with code that is still under development. Each subsequent compilation is faster because the stable code does not need to be recompiled.
This section covers the following precompiled header issues:
- When to Precompile Source Code
- Two Choices for Precompiling Code
- Debugging Code Compiled with Precompiled Headers
- Precompiled Header Consistency Rules
- Using Precompiled Headers in a Project
For reference information on the compiler options related to precompiled headers, see /Y (Precompiled Headers).