- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Neither Intel Visual Fortran nor Compaq Visual Fortran do this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
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