Re:C for All
by xamuel on Friday March 23, 2018 @12:29PM
(#16659764)
The only way to make C safe without losing performance would be to accompany your C code with a formal proof that it avoids undefined behavior, and use a compiler which refuses to compile the code if the formal proof doesn't validate.
[ Parent
| on HN ]
Which would be essentially impossible for any language like C.
Re:C for All
by nickpsecurity on Saturday March 24, 2018 @12:49AM
(#16664933)
KCC is an executable, formal semantics for C that does something like that. Runtime Verification Inc uses it for their bug-hunting tools.