Fortran 2008是否与以前的Fortran版本向后兼容? [英] Is Fortran 2008 backwards compatible with previous Fortran versions?

查看:70
本文介绍了Fortran 2008是否与以前的Fortran版本向后兼容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是的,我知道..,这是无法想象的……这是一个真正的Fortran问题.

Yep I know.., this is not imagined ... it's a real Fortran question.

在以前的版本中,我指的是Fortran 2003、95、90甚至77.

By previous versions I mean Fortran 2003, 95, 90, and even 77.

通过向后兼容,我是说可以轻松运行为2008年以前版本编写的代码(仅对语法进行一些小的更改)?

by backwards compatible I mean can easily run code written for previous versions in 2008 (with nothing more than some minor changes to syntax)?

推荐答案

在Fortran 90中没有删除任何内容,但在Fortran 95及更高版本中删除了一些糟糕的功能.更多被标记为过时".参见例如 http://www.cisl.ucar.edu/zine/96/fall/articles/3.f90.obsolete.html .实际上,编译器供应商仍然包括这些功能,因为那里有很多遗留代码.如果编译器无法编译旧版FORTRAN 77程序,将会引起客户的反感.

Nothing was deleted in Fortran 90 but some awful features have been deleted in Fortran 95 and later. More have been marked as "obsolescent". See, e.g., http://www.cisl.ucar.edu/zine/96/fall/articles/3.f90.obsolete.html. As a practical matter compiler vendors still include these features because there is so much legacy code out there. There would be customer rebellion if compilers couldn't compile legacy FORTRAN 77 programs.

这篇关于Fortran 2008是否与以前的Fortran版本向后兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆