2010-10-21 84 views

回答

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

我不知道这样的测试套件。如果我关心它,我可以look hereread this