- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can Fortran 77 code be compiled with the Intel Fortran Compiler or does it have to be converted to Fortran 90/95?
Jim
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page