Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

ifort > f77

hana008
Beginner
2,100 Views
Hello,

I have a FORTRAN program, which used to run with ifort compiler. Because I am on another machine, I have to transfer it to f77.
I have a problem with options I shloud use>
the original setting is : ifort -04 -Bstatic -dn file
Can you help me transfer this command to f77?

Thank you
Hanka
0 Kudos
6 Replies
Steven_L_Intel1
Employee
2,100 Views
Exactly which compiler is "f77"? It is very likely that your Fortran code will not be recognized by a Fortran 77 compiler.

ifort does not have an -O4 level. It does have -O3. However, optimization levels are not directly comparable across different compilers, so you'll have to look at the documentation for the other compiler to see what is appropriate.

-Bstatic affects linking and says to link with static libraries.

I don't recognize -dn

0 Kudos
rreis
New Contributor I
2,100 Views
Exactly which compiler is "f77"? It is very likely that your Fortran code will not be recognized by a Fortran 77 compiler.

ifort does not have an -O4 level. It does have -O3. However, optimization levels are not directly comparable across different compilers, so you'll have to look at the documentation for the other compiler to see what is appropriate.

-Bstatic affects linking and says to link with static libraries.

I don't recognize -dn


Sun fits the description...

http://www.atnf.csiro.au/computing/software/sol2docs/mr/READMEs/fortran_77.html


(...)

  • Linking on SPARC V9 Platforms Under Solaris 7 and 8:

  • Many static system libraries, such as libm.a and libc.a, are not available in Solaris 7 or 8 environments on SPARC V9 platforms. Only dynamic, shared libraries, libm.so and libc.so, are provided. This means that -Bstatic and -dn compiler options may cause linking errors on SPARC V9 platforms with Solaris 7 or 8. Applications must use dynamic libraries in these cases.

    To explicitly link with a static version of a user library while linking dynamically system libraries, use a command line that looks something like:

    f77 -o prog prog.f -Bstatic -lxyz -labc -Bdynamic

    This will link with libxyz.a and libabc.a, but all other libraries, including system libraries, will be linked dynamically.

    (...)

    0 Kudos
    Steven_L_Intel1
    Employee
    2,100 Views
    So it seems that the command line given was for "f77" and not ifort?
    0 Kudos
    hana008
    Beginner
    2,100 Views
    So it seems that the command line given was for "f77" and not ifort?


    the line was given for ifort ... I have looked also, to manual and I also could not find -dn and -O4 .... but I knew it had worked for ifort.
    The problem were libraries, with which libraries I should link it? ...
    0 Kudos
    Steven_L_Intel1
    Employee
    2,100 Views
    I suggest you ask whoever supports the "f77" compiler you are using.
    0 Kudos
    rreis
    New Contributor I
    2,100 Views
    maybe you could do f77 --version or f77 --help and find out which f77 compiler you have...
    0 Kudos
    Reply