Fortran 90 to C compiler
This is a development version. It is not ready for general use as
a Fortran compiler.
I have several goals for this project:
A description of what has been implemented so far.
The focus has mostly been on how to convert Fortran 90 concepts into C.
- Compile legal Fortran 90 code to a correctly working executable.
- Provide optimization, particularly on arrays.
- Explore new or proposed features.
Improvements in the new version
- Lexer now handles context dependent parts of Fortran
CHARACTER data type
- Added array sections
The latest version f90toC-060298.tar.gz (21K)
The original version f90toC.tar.gz (20K)
Make the target
f90. The executable will be called
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
Last updated: 6/3/98