News for hackers. Stuff that matters.
Re:C and C++ Prioritize Performance over Correctness by boryas on Friday August 18, 2023 @01:00PM (#37178582)
-fwrapv and it's all good :)
Re:C and C++ Prioritize Performance over Correctness by not2b on Friday August 18, 2023 @01:08PM (#37178721)
It really isn't optional as a C developer to turn on warnings and get your code warning-free. This will eliminate the most common unbounded behavior issues, like uninitialized variables, though unfortunately not all of them.
Re:C and C++ Prioritize Performance over Correctness by boryas on Thursday August 24, 2023 @05:10PM (#37254594)
linux, qemu, postgres and many other projects written by "C developers" use and rely on fwrapv, fno-strict-aliasing and others.
Re:C and C++ Prioritize Performance over Correctness by not2b on Friday August 25, 2023 @01:07AM (#37258285)
They also turn on warnings, so they catch uninitialized variables and the like.