User Guide

  • XX.XX
  • 04/09/2020
  • Public Content

Platform

Specifies the target platform for cross compilation.
-platform=default|<target platform>|<embedded target platform>
default
Disables previously defined
-platform
,
--sysroot
, and
-gnu-prefix
values and forces compiler to generate code for the default target. The example below uses Linux*.
embedded target platform
linux
Specifies the Linux target.
This option specifies the target platform for cross compilation. If you do not specify the
-platform
option, the compiler will build a Linux* operating system native application. If you do not specify an argument, you will receive an error message. Using the
default
value for the option disables previously defined values for
-platform
option as well as for
-gnu-prefix
, and
--sysroot
options, and forces the compiler to generate code for the default target platform.
For information about the
gnu-prefix
and
sysroot
compiler options, see the Intel® C++ Compiler 19.1 Developer Guide and Reference.
Example 1:
To compile a C language source file (for example,
my_source_file.c
) for a Linux target, use a command similar to the following:
icc -platform=linux my_source_file.c

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