TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

CompCert - Compilers you can formally trust

32 点作者 evangineer将近 14 年前

6 条评论

davidtgoldblatt将近 14 年前
Also worth reading: the paper that found bugs in the proven-correct compiler: <a href="http://www.cs.utah.edu/~regehr/papers/pldi11-preprint.pdf" rel="nofollow">http://www.cs.utah.edu/~regehr/papers/pldi11-preprint.pdf</a><p>(okay, so only a portion of the compiler is proven correct, and they didn't find any bugs in that portion).<p>Note also that a compiler with a proof isn't necessarily correct - it just means that you've pushed all your bugs into your description of the rules of C and of the target architecture. Since neither C nor any common CPU architecture have a formal semantics, someone has to read the (english) description and convert it to a description in their theorem proving software, and there's no reason to believe this will be easy.
评论 #2620865 未加载
schrototo将近 14 年前
This old Knuth quote seems apt:<p><i>"Beware of bugs in the above code; I have only proved it correct, not tried it."</i>
评论 #2620779 未加载
click170将近 14 年前
I'm confused. The title made me think "list of compilers I can trust", but the website provides no such thing. It looks to me like they've written their own compiler.
评论 #2619821 未加载
评论 #2620056 未加载
beza1e1将近 14 年前
To be realistic: The frontend is not verified. Only very few optimizations are done. It only seems to have a PPC backend.<p>However, i still think verified compilers are the future. It will just take two or three decades until we see them at LLVM quality.
评论 #2620781 未加载
protomyth将近 14 年前
I seem to remember a CPU that was stack-based that was built for correctness. I think it was called the Viper, but I cannot seem to find it. It would be logical to me to run your formally trusted compiler on a chip designed the same way.
评论 #2620905 未加载
kemiller将近 14 年前
Would someone explain "formally trust" in this sense?
评论 #2619863 未加载