|Non-Confidential||PDF version||ARM DUI0472M|
|Home > Compiler Features > Precompiled Header (PCH) files|
Precompiled Header files can help reduce compilation time when the same header file is used by multiple source files.
Support for Precompiled Header (PCH) files is deprecated from ARM Compiler 5.05 onwards on all platforms. Note that ARM Compiler on Windows 8 never supported PCH files.
When you compile source files, the included header files are also compiled. If a header file is included in more than one source file, it is recompiled when each source file is compiled. Also, you might include header files that introduce many lines of code, but the primary source files that include them are relatively small. Therefore, it is often desirable to avoid recompiling a set of header files by precompiling them. These are referred to as PCH files.
The compiler can precompile and use PCH files automatically with the
--pch option, or you can use the
--use_pch options to manually control the use of
By default, when the compiler creates a PCH file, it: