3 ms·
All those compilers you use are correct, for a very precise definition of correct Are they? How do we know? And if they are, why is GCC's list of major and cri
by icebraining 13y ago
All those compilers you use are correct, for a very precise definition of correct
Are they? How do we know? And if they are, why is GCC's list of major and critical bugs[1], for example, longer than a laundry list?
[1] https://gcc.gnu.org/bugzilla/buglist.cgi?bug_severity=critical&bug_severity=major https://gcc.gnu.org/bugzilla/buglist.cgi?bug_severity=critic...
- dkarapetyan 13y agoBeware of bugs in the above code; I have only proved it correct, not tried it. - Donald Knuth Formal correctness and implementation correctness are still separate issues in compilers like gcc but that doesn't change the fact that there are correctness specifications for gcc. There are projects that try to bridge the gap: https://en.wikipedia.org/wiki/CompCert https://en.wikipedia.org/wiki/CompCert.