Converting Fortran IV to 77

 ̄綄美尐妖づ 提交于 2020-01-15 07:53:26

问题


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.


回答1:


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




回答2:


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:


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



来源:https://stackoverflow.com/questions/4207479/converting-fortran-iv-to-77

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!