Re:ISO C became unusable for operating systems development
by rini17 on Friday January 21, 2022 @10:19AM
(#30024661)
So you're fine with throwing your hands up "its unreliable, its a bug that should never happen" when standard lacks a clear recipe how to check beforehand whether signed integer arithmetic will overflow? Everyone rolls their own, introducing even more bugs.
[ Parent
| on HN ]
Re:ISO C became unusable for operating systems development
by bluecalm on Friday January 21, 2022 @11:35AM
(#30025900)
Well, I prefer to have standard tools to check or a way to compile so it traps on the overflow. Majors compilers provide that if you value security over performance and are not sure about correctness of your logic.