Developer Guide and Reference

Contents

x (type option)

All source files found subsequent to -x type will be recognized as a particular type.

Syntax

Linux:
-x
type
macOS:
-x
type
Windows:
None
Arguments
type
is the type of source file. Possible values are:
c++
C++ source file
c++-header
C++ header file
c++-cpp-output
C++ pre-processed file
c
C source file
c-header
C header file
cpp-output
C pre-processed file
assembler
Assembly file
assembler-with-cpp
Assembly file that needs to be preprocessed
none
Disable recognition, and revert to file extension
Default
none
Disable recognition and revert to file extension.
Description
All source files found subsequent to
-x
type
will be recognized as a particular type.
Alternate Options
None
Suppose you want to compile the following C and C++ source files whose extensions are not recognized by the compiler:
File Name
Language
file1.c99
C
file2.cplusplus
C++
We will also include these files whose extensions are recognized:
File Name
Language
file3.c
C
file4.cpp
C++
The command-line invocation using the
-x
option follows:
icpc -x c file1.c99 -x c++ file2.cplusplus -x none file3.c file4.cpp

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