Fortran 90 to C compiler
Warning
This is a development version. It is not ready for general use as
a Fortran compiler.
Goals
I have several goals for this project:
- Compile legal Fortran 90 code to a correctly working executable.
- Provide optimization, particularly on arrays.
- Explore new or proposed features.
A description of what has been implemented so far.
The focus has mostly been on how to convert Fortran 90 concepts into C.
Improvements in the new version
- Lexer now handles context dependent parts of Fortran
- Added
CHARACTER data type
- Added array sections
Obtaining source
The latest version f90toC-060298.tar.gz (21K)
The original version f90toC.tar.gz (20K)
Instructions
Make the target f90. The executable will be called ff90.
It takes Fortran 90 code from standard input and emits
C code to standard output.
A straightforward compile from test.f90 to a.out would look like
> ff90 < test.f90 > tmp.c
> gcc tmp.c
This code has been tested with Linux 2.0.24, flex 2.5.2, and bison 1.22.
It ought to compile on other machines without too much trouble.
Major To Do Items
email Mark Dewing at
m-dewing@uiuc.edu
Last updated: 6/3/98