Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

SGI to Intel Compiler Options

chauvjo
Novice
433 Views
I am in the processing of porting a Fortran program from the SGI to Mac OS Xand am trying to map the current SGI compiler options to the equivalent Intel Fortran option (if applicable).

Can someone tell me what the equivalent Intel Fortran compiler option is for the following SGI compiler option:

-n32 = generates 32-bit objects (specifies the Application Binary Interface)

-Olimit 1126 = Specify the maximum size, in basic blocks, of a routine that will be optimized by the global optimizer.
0 Kudos
1 Solution
TimP
Honored Contributor III
433 Views
Quoting - chauvjo
I am in the processing of porting a Fortran program from the SGI to Mac OS Xand am trying to map the current SGI compiler options to the equivalent Intel Fortran option (if applicable).

Can someone tell me what the equivalent Intel Fortran compiler option is for the following SGI compiler option:

-n32 = generates 32-bit objects (specifies the Application Binary Interface)

-Olimit 1126 = Specify the maximum size, in basic blocks, of a routine that will be optimized by the global optimizer.
You don't necessarily require direct equivalents of these options. They are highly compiler dependent.
If you want to generate 32-bit code even though you have a 64-bit MacOS, you use the same ia32 version of ifort. However, the fact that -n32 was used on Irix is no indication that you shouldn't use Intel64.
The default basic block limit for ifort optimization is large enough that they don't want you to tinker with it. If the compiler hits a limit which causes it to turn off optimization (so as to avoid danger of hanging), there is a warning message, which may give some suggestion. For example, it might be preferable to set -fnoinline-functions if such a limit is exceeded.

View solution in original post

0 Kudos
1 Reply
TimP
Honored Contributor III
434 Views
Quoting - chauvjo
I am in the processing of porting a Fortran program from the SGI to Mac OS Xand am trying to map the current SGI compiler options to the equivalent Intel Fortran option (if applicable).

Can someone tell me what the equivalent Intel Fortran compiler option is for the following SGI compiler option:

-n32 = generates 32-bit objects (specifies the Application Binary Interface)

-Olimit 1126 = Specify the maximum size, in basic blocks, of a routine that will be optimized by the global optimizer.
You don't necessarily require direct equivalents of these options. They are highly compiler dependent.
If you want to generate 32-bit code even though you have a 64-bit MacOS, you use the same ia32 version of ifort. However, the fact that -n32 was used on Irix is no indication that you shouldn't use Intel64.
The default basic block limit for ifort optimization is large enough that they don't want you to tinker with it. If the compiler hits a limit which causes it to turn off optimization (so as to avoid danger of hanging), there is a warning message, which may give some suggestion. For example, it might be preferable to set -fnoinline-functions if such a limit is exceeded.
0 Kudos
Reply