Re:Writing a compiler in Python using Lex, Yacc and LLVM
by ilkhd2 on Saturday September 19, 2009 @11:46PM
(#832681)
There many attempts to get proofs for compilers for popular languages, C or Ada for example:
http://portal.acm.org/citation.cfm?id=1315602
http://pauillac.inria.fr/~xleroy/publi/compiler-certif.pdf
[ Parent
| on HN ]
Re:Writing a compiler in Python using Lex, Yacc and LLVM
by daeken on Saturday September 19, 2009 @11:49PM
(#832684)
Yes, I'm aware. However, like most such things, they're simply not practical. Proving compiler correctness is insanely difficult (if it wasn't, we'd have much better compilers) and it very frequently ignores optimization entirely, making such compilers useless.
In theory, proving correctness is a good way to go. In the real world, it's not remotely viable.