3 ms·
"Optimizing compilers that don't allow disabling __all__ optimizations"
by nabla9 2y ago
"Optimizing compilers that don't allow disabling __all__ optimizations"
- exe34 2y agodo these exist? who's using them?
- layer8 2y agoIt’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.
- kevingadd 2y agoOr 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.