News for hackers. Stuff that matters.
Re:Boringcc: Proposal for a C compiler for secure software by kenko on Monday December 21, 2015 @04:32PM (#10773672)
Why is that more appropriate than just defining all the currently undefined/implementation-specific behavior?
Re:Boringcc: Proposal for a C compiler for secure software by CountSessine on Monday December 21, 2015 @04:40PM (#10773721)
IMO both approaches would be useful. One nice thing about outlawing undefined behaviour rather than defining it, though, it that you'll be writing portable code - if you have a code base that's filled with all all sorts of once-was-undefined-but-now-is-defined behaviour, you can never build that code on another compiler.
Re:Boringcc: Proposal for a C compiler for secure software by Pxtl on Monday December 21, 2015 @04:37PM (#10773698)
Because enforcing undefined behavior on this test-compiler means you can build your software on any standards-compliant compiler and have it work the same. In theory.