Re:Clang vs. Clang
by nabla9 on Saturday August 03, 2024 @12:34PM
(#41147588)
"Optimizing compilers that don't allow disabling __all__ optimizations"
[ Parent
| on HN ]
Itβs not well-defined what counts as an optimization. For example, should every single source-level read access of a memory location go through all cache levels down to main memory, instead of, for example, caching values in registers? That would be awfully slow. But that question is one reason for UB.
Or writing code that relies on inlining and/or tail call optimization to successfully run at all without running out of stack... We've got some code that doesn't run if compiled O0 due to that.