Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Any fortran 90 to C converter available?

1,166 views
Skip to first unread message

den...@gmail.com

unread,
Jun 26, 2008, 7:54:55 PM6/26/08
to
Hi all,

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

Mark Westwood

unread,
Jun 27, 2008, 12:18:13 PM6/27/08
to
Hi 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/

Lynn McGuire

unread,
Jun 27, 2008, 12:21:56 PM6/27/08
to

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

Dick Hendrickson

unread,
Jul 4, 2008, 6:11:26 PM7/4/08
to
You might try the NAG Fortran compiler. You'd have to buy it, it's not
free. But, it's an excellent compiler. It uses C as an intermediate
language and I think you can get that as an output. It won't be
easy to read (unlike most C programs ;) ), and I think the C is
machine specific.

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

0 new messages