Intel® C++ Compiler 16.0 User and Reference Guide
The Intel compiler's Option Mapping Tool provides an easy method to derive equivalent options between Windows* and Linux*. If you are a Windows-based application developer who is developing an application for Linux OS, you may want to know, for example, the Linux OS equivalent for the /Oy- option. Likewise, the Option Mapping Tool provides Windows OS equivalents for Intel compiler options supported on Linux OS.
The Option Mapping Tool is not supported on OS X*.
You can start the Option Mapping Tool from the command line by:
invoking the compiler and using the /Qmap-opts-map-opts option
executing the tool directly
Compiler options are mapped to their equivalent on the architecture you are using.
Calling the Option Mapping Tool with the Compiler
If you use the compiler to execute the Option Mapping Tool, the following syntax applies:
<compiler command> <map-opts option> <compiler option(s)>
Example: Finding the Linux OS equivalent for /Oy-
icl /Qmap-opts /Oy- Intel® Compiler option mapping tool mapping Windows options to Linux OS for C++ '-Qmap-opts' Windows option maps to --> '-map-opts' option on Linux --> '-map_opts' option on Linux '-Oy-' Windows option maps to --> '-fomit-frame-pointer-' option on Linux --> '-fno-omit-frame-pointer' option on Linux --> '-fp' option on Linux
Example: Finding the Windows OS equivalent for -fp
icpc -map-opts -fp Intel® Compiler option mapping tool mapping Linux options to Windows OS for C++ '-map-opts' Linux option maps to --> '-Qmap-opts' option on Windows --> '-Qmap_opts' option on Windows '-fp' Linux option maps to --> '-Oy-' option on Windows
Output from the Option Mapping Tool also includes:
option mapping information (not shown here) for options included in the compiler configuration file
alternate forms of the option that are supported but may not be documented
When you call the Option Mapping Tool with the compiler, your source file is not compiled.
Calling the Option Mapping Tool Directly
Use the following syntax to execute the Option Mapping Tool directly from a command line environment where the full path to the map_opts executable is known (compiler bin directory):
map_opts [-nologo] -t<target OS> -l<language> -opts <compiler option(s)>
where values for:
<target OS> = {l|linux|w|windows}
<language> = {f|fortran|c}
Example: Finding the Linux OS equivalent for /Oy-
map_opts -tl -lc -opts /Oy- Intel® Compiler option mapping tool mapping Windows options to Linux for C++ '-Oy-' Windows option maps to --> '-fomit-frame-pointer-' option on Linux --> '-fno-omit-frame-pointer' option on Linux --> '-fp' option on Linux
Example: Finding the Windows OS equivalent for -fp
map_opts -tw -lc -opts -fp Intel® Compiler option mapping tool mapping Linux options to Windows for C++ '-fp' Linux option maps to --> '-Oy-' option on Windows