Intel® Fortran 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*operating systems. For example, a Windows OS developer who is developing an application may want to know 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 Compiler Option Mapping Tool does not support selecting OS* X. However, because Linux and OS X* use the same options in almost all cases, specify "tlinux" if targeting OS X*.
You can start the Option Mapping Tool from the command line by:
Invoking the compiler and using the /Qmap-opts option
Invoking the compiler and using the -map-opts option
Executing the tool directly
The Compiler Option Mapping Tool only maps compiler options on the same architecture. It will not map an option that is specific to the Intel® 64 architecture to a like option available on the IA-32 architecture.
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 equivalent for /Oy-
ifort /Qmap-opts /Oy- Intel® Compiler option mapping tool mapping Windows OS options to Linux OS for Fortran '-Qmap-opts' Windows OS option maps to --> '-map-opts' option on Linux OS --> '-map_opts' option on Linux OS '-Oy-' Windows OS option maps to --> '-fomit-frame-pointer-' option on Linux OS --> '-fno-omit-frame-pointer' option on Linux OS --> '-fp' option on Linux OS |
Example: Finding the Windows OS equivalent for -fp
ifort -map-opts -fp Intel® Compiler option mapping tool mapping Linux OS options to Windows OS for Fortran '-map-opts' Linux OS option maps to --> '-Qmap-opts' option on Windows OS --> '-Qmap_opts' option on Windows OS '-fp' Linux OS option maps to --> '-Oy-' option on Windows OS |
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 options that are supported but may not be documented
When you call the Option Mapping Tool with the compiler, the 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 -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 -lf -opts /Oy- Intel® Compiler option mapping tool mapping Windows OS options to Linux OS for Fortran '-Oy-' Windows OS option maps to --> '-fomit-frame-pointer-' option on Linux OS --> '-fno-omit-frame-pointer' option on Linux OS --> '-fp' option on Linux OS |
Example: Finding the Windows equivalent for -fp
map_opts -tw -lf -opts -fp Intel® Compiler option mapping tool mapping Linux OS options to Windows OS for Fortran '-fp' Linux OS option maps to --> '-Oy-' option on Windows OS |