是否可以确定哪个Fortran编译器生成“.mod”文件? [英] Is it possible to determine which Fortran compiler generated a ".mod" file?

查看:1381
本文介绍了是否可以确定哪个Fortran编译器生成“.mod”文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我已经在我的机器上安装了一个软件包,我想知道是否需要重新生成模块包含文件( .mod ),我的汇编的其余部分。有没有办法做这个?

Say I have a package already installed on my machine and I want to figure out if I need to regenerate the module include files (.mod) to make them compatible with the rest of my compilation. Is there any way to do this?

推荐答案

如果模块是使用gfortran构建,然后使用字符串的mod文件)将提供编译器名称和版本号。但是,对于Intel,strings命令只显示编译器版本号。

If the module is built using gfortran then using strings on the mod file (on Linux) will provide the compiler name and the version number. However, for Intel, the strings command will only show the compiler version number.

这篇关于是否可以确定哪个Fortran编译器生成“.mod”文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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