Converting Fortran IV to 77

2019-07-19 09:02发布

I am looking for a utility to convert fortran IV code to a more structured sort of fortran like fortran 77 or later. I am trying to understand what exactly the code does and all those "goto" and calculated "if" statements don't help. Thanks.

3条回答
Evening l夕情丶
2楼-- · 2019-07-19 09:48

There's a section of the FORTRAN FAQ on this (search for "Code re-structurers and converters")

TIDY looks like it will do some of the work for you. Unfortunately not including the calculated-if and goto

Web page last updated more than 10 years ago!

A commercial product is here, but costs ~$500 for 5000 lines of conversion.

Courses on how to do this manually can be found here

IBM utility to convert Fortran IV to PL-I :) written in 1973, it seems

查看更多
男人必须洒脱
3楼-- · 2019-07-19 09:49

All already mentioned aside, in the end it always comes down to a bit of hard labour :) And that's where SciTools Understand shines.

alt text

查看更多
唯我独甜
4楼-- · 2019-07-19 10:02

There is also PlusFort, which can do comprehensive restructuring -- see the examples at http://www.polyhedron.com/spag0html. There is a reduced capability version that is free for certain uses: http://www.polyhedron.com/pflinux0html

查看更多
登录 后发表回答