2 ms·
> No, it's not portable. Yes, it's necessary. And that's ok. Indeed, and it may be necessary to have an analysis tool skip over that code, but it applies to on
by MaxBarraclough 9y ago
> No, it's not portable. Yes, it's necessary. And that's ok.
Indeed, and it may be necessary to have an analysis tool skip over that code, but it applies to only a tiny minority of C code.
Interesting skim-read, that paper. I agree with the author's lamentation that we so often pretend there's nothing we can do about C's safety issues. Even configuring GCC to check all dereferences for NULL, strikes many people as unusually rigorous.
Dev+debug builds in particular should have as many runtime checks as possible, but for no obvious good reason, that's just not how we do things.