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

what options I should use to compile the code to behave the same as MIPS "f77 -O3 -n32 -r8 -static"

hunt4answer
Beginner
1,016 Views
Hi guys,
I am new to ifort. I am in the process to transfer from SGI UNIX to Red hat Linux. I am trying to compile a numerical model in Linux. I have been running this model on SGI, but the Linux results are quite different that what I have on SGI. The option I used on SGI is "f77 -w -O3 -n32 -r8 -static". Can anyone tell me what the equvilent option be for ifort. I tried "ifort -O3 -pc80 -r8 -static". Please help me.
Thanks
0 Kudos
4 Replies
Steven_L_Intel1
Employee
1,016 Views
Try replacing -static with -save. -static means link against static libraries in Intel Fortran. I don't know what -n32 does. I suggest starting with -O2 (or just omit it). Opt levels aren't comparable across different vendors.
0 Kudos
TimP
Honored Contributor III
1,016 Views
You may find that -xW -ftz -r8 -save is closer to what you want. I think -n32 implied abrupt underflow. Irix had nothing like -pc80. If I recall correctly, -Bstatic on Irix was like -static on linux, so Steve's comment may be correct there.

Message Edited by tim18 on 11-04-2004 02:58 PM

0 Kudos
hunt4answer
Beginner
1,016 Views
Thanks for the quick response. I'll try this.
Jerry
0 Kudos
hunt4answer
Beginner
1,016 Views
Guys,
-xW -r8 -save really does the work. Thanks for your help.
Jerry
0 Kudos
Reply