Developer Guide and Reference

Contents

pch-use

Tells the compiler to use a precompiled header file.

Syntax

Linux and macOS:
-pch-use
filename
Windows:
None
Arguments
filename
Is the name of the precompiled header file to use. A space must appear before the file name. It can include a path.
Default
OFF
The compiler does not create or use precompiled headers unless you tell it to do so.
Description
This option tells the compiler to use a precompiled header (PCH) file.
It is supported for multiple source files when all source files use the same .pchi file.
This option cannot be used in the same compilation as the
-pch-create
option.
To learn how to optimize compile times using the PCH options, see "Using Precompiled Header Files" in the User's Guide.
On Windows* systems, option
-pch-use
is equivalent to the
/Yu
option.
Alternate Options
Linux and
macOS*
: None
Windows:
/Yu
Consider the following command line:
icpc -pch-use /pch/source32.pchi source.cpp
It produces the following output:
"source.cpp": using precompiled header file /pch/source32.pchi

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804