Depressing and faintly terrifying days for the C standard [pdf]
I can&#x27;t be the only one that 99.9% of the time doesn&#x27;t care _one iota_ about these mythical optimizations that compilers can introduce by exploiting undefined behavior. I just want to write straightforward, predictable code that tries its best to be safe but for one reason or another have to stick with C.<p>Is there a guide&#x2F;reference on how to disable these optimizations in modern compilers? A list of GCC&#x2F;Clang arguments that disable as much of this as possible would be greatly appreciated. I&#x27;ve seen a lot of posts and articles discussing C undefined behavior but almost nothing describing how to counter it.