Intel 编译器向后兼容 Compaq 编译器

发布于 2024-11-07 08:15:46 字数 163 浏览 0 评论 0原文

我的计算机上有最新版本的英特尔编译器。但是,我正在尝试运行一个旧的 Fortran 文件,该文件旨在在旧的 Compaq 编译器上运行。 USE MSIMSL、USE File.f90 以及 ALLOCATE 似乎都有问题 有

没有办法让 Intel 编译器像旧的 Compaq 编译器一样工作?

I have a recent edition of the Intel Compiler on my computer. However, I am trying to run an old fortran file designed to run on an old Compaq compiler. It seems to have a problem with USE MSIMSL, USE File.f90, as well as ALLOCATE

Is there a way to have the Intel compile work as the old Compaq compiler?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寄人书 2024-11-14 08:15:46

如果您没有包含视觉数字 IMSL 库版本的特定英特尔 Fortran 编译器,那么我认为您无法让它工作,除非购买 IMSL 库或移植代码以使用其他的东西,比如英特尔的 MKL 或任何你可以从 netlib 中获取的开源东西。

如果您确实有 IMSL,那么您需要将 USE MIMSL 更改为 USE NUMERICAL_LIBRARIES,然后添加一些特定于编译器版本的咒语来构建 IMSL。

USE 命令在语法上显然是不正确的,而且它在 DEC/Compaq 编译器中起作用的事实可能只是偶然的。在 Fortran 90 和 95 中,USE 用于模块导入。它们应该更改为 INCLUDE

ALLOCATE 也是 Fortran 90 和 95 的标准功能。如果没有有关问题确切性质的更多信息,实际上无法表明可能发生的情况。

最后,我用 10 秒的时间用 google 找到了这个链接 讨论从 Compaq 编译器迁移到 Intel 编译器。也许会有用。祝你好运。

If you don't have the specific Intel Fortran compiler which includes a version of the visual numerics IMSL library, then I don't think you are going to get this to work, short of either buying the IMSL library or porting the code to use something else, like Intel's MKL or whatever open source stuff you can scrape off netlib.

If you do have IMSL, then you will need to change USE MIMSL to USE NUMERICAL_LIBRARIES and then add a few compiler version specific incantations to get the IMSL inclusion to build.

The USE command is clearly syntactically incorrect, and the fact it worked in the DEC/Compaq compiler is probably only accidental. In Fortran 90 and 95 USE is intended for module importing. They should be changed to INCLUDE.

ALLOCATE is also a standard feature of Fortran 90 and 95. Without more information about what the exact nature of the problem is, it really isn't possible to suggest what might be happening.

Finally, 10 seconds with google found me this link which discusses migrating from Compaq to Intel compilers. Perhaps it will be of use. Best of luck.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文