Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fortran to C compiler

Status
Not open for further replies.

nphani

Technical User
Feb 10, 2002
104
US
Hi Friends,

I have a C compiler and have been using "f2c" to convert F77 programs to C and later using my C compiler. Now, I also have F90 programs. I get errors when using f2c to convert them to C. Does f2c support F90 to C? Else, do we have any other converters that can do this?

I have seen some Fortran 77 to Fortran 90 converters, but none doing the reverse. Does anyone know about any converter converting F90 to F77?

Any help would be highly appreciated.

Phani
 
f2c doesn't support F90 to C. In fact, F90 is almost like C with a different syntax and extra facilities like BLOCK DATA and NAMELIST.

F90 to F77 isn't that easy. F90 has a lot of stuff that doesn't exist in F77 like structures, recursion etc.

Sorry about the negative tone.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top