严格的fortran77编译器? (或gfortran编译器标志) [英] Strict fortran77 compiler? (or gfortran compiler flag)
问题描述
有没有办法让 gfortran
拒绝f95添加到Fortran 77?如果没有,是否还有另一个只有f77的编译器可用于unix系统?
我试过使用 -std = legacy
标志,但似乎只能从f77程序中删除折旧警告; f95增强功能仍然可以正常工作。
您可以使用
设置固定格式
gfortran -ffixed-form -ffixed-line-length-none [sourcefiles]
这实际上可以有所作为(我有一个程序在这里改变了输出!)。
我非常肯定,有些选项会禁用至少大部分f95功能。
Is there any way to get gfortran
to reject the f95 additions to Fortran 77? If not, is there another f77-only compiler available for unix systems?
I've tried using the -std=legacy
flag but that only seems to remove depreciation warnings from f77 programs; the f95 enhancements still work fine.
You can set fixed format with
gfortran -ffixed-form -ffixed-line-length-none [sourcefiles]
And this can actually make a difference (I have a program here where this changes the output!).
I’m pretty sure that there are options, which disable at least most of the f95 features.
这篇关于严格的fortran77编译器? (或gfortran编译器标志)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!