News for hackers. Stuff that matters.
Re:Ask HN: What are some good resources to learn safety-crit... by flyingfences on Friday August 05, 2022 @11:34PM (#32364575)
Yup, and that's exactly why we turn the optimizations off and keep them off, even for the shipped release.
Re:Ask HN: What are some good resources to learn safety-crit... by wizofaus on Friday August 05, 2022 @11:37PM (#32364591)
Makes sense if safety is a priority over performance and/or concerns over reverse engineering.
Re:Ask HN: What are some good resources to learn safety-crit... by jstimpfle on Saturday August 06, 2022 @05:54AM (#32366597)
For the mostly high-level C code that I write, I find that compiler optimisations give typically give speed-ups in the 1.5x - 3x range. A lot of code is bound by external bottlenecks that would completely mask such a speedup anyway.

For really performance-oriented code you probably want to drop to SIMD first, and play with compiler optimisations second.