The Intel compiler's Option Mapping Tool provides an easy method to derive equivalent options between Windows* and Linux*. If you are a Windows developer who is developing an application for Linux, you may want to know, for example, the Linux equivalent for the /Oy- option. Likewise, the Option Mapping Tool provides Windows equivalents for Intel compiler options supported on Linux.
You can start the Option Mapping Tool from the command line by:
invoking the compiler and using the -map_opts option
or, executing the tool directly
Note
The Compiler Option Mapping Tool only maps compiler options on the same architecture. It will not, for example, map an option that is specific to Itanium®-based systems to an option on an IA-32 system or an Intel® EM64T system.
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 Windows equivalent for -fp
ifort -map-opts -fp Intel(R) Compiler option mapping tool
mapping Linux options to Windows for Fortran
'-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 |
Note
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
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 Windows equivalent for -fp
map_opts -tw -lf -opts -fp Intel(R) Compiler option mapping tool
mapping Linux options to Windows for Fortran
'-fp' Linux option maps to --> '-Oy-' option on Windows |