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

Does any fortran compiler perform a C hidden translation before making obj code?

guido_lombardi
Beginner
196 Views
I wonder if
any fortran compiler performs a C hidden translation before making obj code.
Is it true?
In old/new fortran compiler?
Guido

Message Edited by guido.lombardi@polito.it on 10-05-2004 05:43 AM

0 Kudos
2 Replies
Steven_L_Intel1
Employee
196 Views
Neither Intel Visual Fortran nor Compaq Visual Fortran do this.
0 Kudos
TimP
Honored Contributor III
196 Views
There are myths about this. Many Fortran compilers, including Intel Visual Fortran, share some back end components and an Intermediate Language representation with a C compiler. Even with the few Fortran compilers which do generate C code, it is nearly as unreadable and non-portable as this Intermediate Language.
If you consider f2c to be a Fortran (77) compiler, that is available at netlib.org, and even had maintenance fixes up to a year ago. The C code which it generates (C89 or K&R, or a bit of early C++) is still not intended to be useful as anything but an intermediate file. f2c linkage conventions are like ifort -Qlowercase -us, but the run time library calls are not compatible with Visual Fortran.
0 Kudos
Reply