Security quotes of the week
Security quotes of the week
Posted Apr 26, 2018 6:13 UTC (Thu) by mjthayer (guest, #39183)Parent article: Security quotes of the week
Surely the most reliable way to outwit the compiler's optimiser is simply to turn it off. It would be very nice to be able to mark areas of source code which should or should not be optimised, but failing that, splitting code which should and should not be optimised into separate source files should work for any reasonable compiler, and you even get fine-grained control over which optimisations you want.
Given that most code in most projects is not expected to be performance-critical, I always wonder anyway why people waste time and fossil fuel (and risk uncovering assumptions in their code they would rather not have known about) optimising it build after build.
