是否有一个测试套件用于检查Fortran编译器是否完全实现了Fortran 2003标准?Fortran 2003的编译器验证套件?
1
A
回答
2
简短的回答:没有
对于Fortran 95,有SHAPE95测试套件由斯帕克曼&亨德里克森,公司但是,它从来没有声称自己是一个完整的测试套件,也不是正式的权威。当然,这同样适用于NIST F77测试套件,与SHAPE95相比,它是免费提供的。其次,AFAIK SHAPE95尚未针对F2003进行更新。
那该怎么办?好了,关于几年前在CLF同样的事情进行一些讨论:
Bart Vandewoestyne wrote: > On 2007-12-14, Richard Maine wrote: >> It seems reasonably complete to me. But you can't just use a checklist >> like that for standard compliance. It is a very nice summary, and I find >> it quite useful, but I'm sorry, the full standard doesn't compress down >> to one page like that. Sorry, but it ain't gonna happen. If anyone >> claims to have such a one-page or so checklist of the things that would >> make a compiler fully f2003 compliant, then they are wrong. >> But it is a good summary. > I completely agree with you, Richard. But then what are the > criteria for 'full F2003 compliance'? If a compiler-writer > claims that he has a 'full F2003 compliant compiler', then what are > the criteria that he uses to support his statement? Ultimately, good faith and his reputation. It's a hard standard to read (or to write books about, as Richard can tell you) and there is no official test or validation program. Real vendors won't claim to support it unless they really think they do. And, they'll do their best to fix any omissions or errors. There is an interpretation process that will get J3 to give an official answer to a specific question. For the past many years, essentially all of the interp questions have come from compiler writers who are trying to understand the standard. It's not a great situation. The best advice is to get several compilers and try your code on several of them--with full error checking and standards conformance options turned on. Dick Hendrickson
FWIW的“理查德·缅因”字上面是F2003标准的编辑,“迪克·亨德里克森”已IIRC也担任了标准委员会,是的,他是SHAPE95背后的一员。 IOW,他们知道他们在说什么。
最后,gfortran编译器附带了一个相当大的测试套件,它可以像编译器的其余部分一样免费获得。我已经看到了专有编译器厂商的一些评论,他们也使用过它。但是,再次,gfortran测试套件不声称是一个完整的测试套件;实际上,大多数测试用例以前在编译器中暴露了错误。
2
相关问题
- 1. 编译Fortran程序和编译器/库
- 2. 如何安装Fortran编译器(gcc42-fortran)
- 3. Fortran 95编译器是否可以编译Fortran 77代码?
- 4. 什么是Fortran编译器?
- 5. Fortran编译错误764嵌套错误
- 6. 使用记事本++和英特尔编译器编译文件Fortran编译器
- 7. 编译时验证失败(帐户套件的Android)
- 8. MinGW编译器套件
- 9. FORTRAN编译错误
- 10. Fortran编译错误
- 11. 与Cray公司的编译器编译OpenACC的Fortran代码
- 12. e验证语言编译器
- 13. 编译旧的fortran代码
- 14. Gnu Fortran编译器写入选项
- 15. CMake Fortran编译器依赖标志
- 16. Fortran编译器为mac读取程序
- 17. 与Fortran编译器和C++库冲突
- 18. FORTRAN 2003中定稿
- 19. 编译FORTRAN IV或转换为FORTRAN 77?
- 20. EL编译式验证
- 21. 编译时XQuery验证
- 22. 编译Fortran和C++程序并从intel编译器链接
- 23. 为iPhone编译外部C++库(Octave)(Fortran编译器缺失?)
- 24. 英特尔fortran编译器的任何eclipse插件?
- 25. intel Fortran编译器(ifort)有编译和编译后自动运行可执行文件的选项吗?
- 26. Seam/JSF/Facelets编译器或验证器(相当于JSP的JspC)
- 27. 无法配置MPICH。所选的Fortran 90编译程序gfortran不与选定的Fortran 77编译器gfortran
- 28. 的Visual Studio编译时SQL验证
- 29. 如何验证用Ipopt编译的SCIP?
- 30. 如果英特尔编译器是默认编译器,如何为VS 2003设置本机Microsoft编译器?