编译旧的 Fortran 代码
我需要编译旧的(1992)fortran 代码。该代码在某些 SGI IRIX 工作站上运行,最初是用 f77 编译的。如果我尝试在 macbook pro 或 ubuntu 虚拟机上使用 gcc (g77) 编译它,则会出现错误。我想知道是否有某种方法可以获得旧的 f77 编译器(虚拟机,等等)。 f2c 根本不起作用。
I need to compile an old (1992) fortran code. This code run in some SGI IRIX workstation and it was originally compiled with f77. I get errors if I try to compile it with gcc (g77) on my macbook pro or in a ubuntu virtual machine. I wonder if there is some way to get the old f77 compiler (virtual machine, whatever). f2c does not work at all.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
除非是现代编译器不支持的某些供应商扩展(极其罕见),否则我不明白为什么 F77 代码编译 &构建应该会出现任何问题。也许是 Fortran IV 或更早的版本,但 F77(在合理范围内)应该可以正常工作,不会出现太大问题。
然而,除了可用编译器列表而不了解它之外,很难提出任何建议。代码的详细信息、您遇到的错误、编译选项...(?)
请发布更多详细信息。
Unless it is the case of some vendor extensions which modern compilers do not support (extremelly rare), I don't see why F77 code compilation & build should present any problem at all. Fortran IV or older, maybe, but F77 (within reasonable bounds) should work without much problems.
However, it is hard to suggest anything but a mere list of compilers available without knowing anything about it. The details of the code, the errors that you got, the compile options ... (?)
Please, post some more details.
我使用 Openwatcom Fortran 编译器成功编译了 1992 年左右的一些 fortran77 源代码:
http://www.openwatcom.org/
更多 fortran 编译器:
http://www.fortran.com/compilers.html
I sucessfully compiled some fortran77 source code from ~1992 with the Openwatcom Fortran compiler:
http://www.openwatcom.org/
more fortran compilers:
http://www.fortran.com/compilers.html