Fortran 2008是否与以前的Fortran版本向后兼容?

编程入门 行业动态 更新时间:2024-10-14 00:27:43
本文介绍了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及更高版本中删除了一些糟糕的功能.更多被标记为过时".参见例如 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., 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版本向后兼容?

本文发布于:2023-11-13 22:47:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1585531.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:版本   Fortran

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!