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

Fortran 77 - Supported by Intel Fortran Compiler?

Intel_C_Intel
Employee
2,910 Views

Can Fortran 77 code be compiled with the Intel Fortran Compiler or does it have to be converted to Fortran 90/95?

Jim

0 Kudos
3 Replies
Lorri_M_Intel
Employee
2,910 Views

Fortran 90/95 is a superset of Fortran 77, so yes, it can be compiled.

You will wantto make sure the source file is considered to be fixed-form by the compiler. By default, if the extension is .f or .for, the compiler considers it to be fixed-form. Otherwise, you will have to explicitly specify /fixed when you compile.

Good luck!

- Lorri

0 Kudos
TimP
Honored Contributor III
2,910 Views
When some people say f77, they mean f77 plus specific vendor extensions. ifort supports many of the most common vendor extensions (all of those which are compatible with f90). There are just a few minor instances where f77 does not agree with f90, or larger variations in interpretation were permitted than in f90. None of these differences are sufficient that any vendor continues to support an f77 only compiler. Much of the production code which runs with ifort goes back to f66.
0 Kudos
Steven_L_Intel1
Employee
2,910 Views
And where there are semantic differences, Intel Fortran offers a switch to select the F77 behavior. To the best of my knowledge, this is all within I/O behavior and the /f77rtl switch handles that. Most programs don't need it.
0 Kudos
Reply