I am looking for a program that can automatically convert fortran 90
codes to C codes. I found the following page http://www.ncsa.uiuc.edu/~mdewing/f90toC/
But it seems that the code is still in development and is no longer
updated (last updated was in 1998). Is there any other program that
can convert f90 codes to C codes? Thanks in advance!
Eric
There's nothing that I know of that does this; it's a few years since
I looked hard, but I couldn't find anything then. And what I did find
was more work than translating by hand ...
What I do, and I suspect that most of the other comp.lang.fortrannies
do too, is embrace multi-language development with varying degrees of
enthusiasm. If I've got a working Fortran 90 code and want to
integrate it with a working C code I just go right ahead and compile
and link and sort out the niggles. Things are getting easier on this
front, what with Fortran 2003's interoperability features (already
available in a number of compilers) and work like Babel.
Now, since (here) it's late on Friday, here's a project for the
weekend:
-- have a Google for decompilation; you should find a variety of tools
for transforming executables into some kind of C
Hey presto !
Mark
On Jun 27, 12:54 am, den...@gmail.com wrote:
> Hi all,
>
> I am looking for a program that can automatically convert fortran 90
> codes to C codes. I found the following pagehttp://www.ncsa.uiuc.edu/~mdewing/f90toC/
I would talk to Clyde at http://www.cobalt-blue.com/ .
His FOR_C program is for F77 to C but it might do most of
the F90 if your code is mostly F77.
Lynn
Why do you want to convert Fortran to C? Either of the G Fortran
compilers are free and, I think, their output is easily linkable
with C code. Converting from one language to another is
hard and error prone.
Dick hendrickson