4 ms·
> I've been growing more skeptical of this claim over time. First, more evidence would be nice instead of "some loops". What is a program (not a benchmark) that
by pcwalton 11y ago
> I've been growing more skeptical of this claim over time. First, more evidence would be nice instead of "some loops". What is a program (not a benchmark) that has an observable performance difference when compiled with and without -fwrap?
Google brings up this old message. It seems to affect the SPEC2000 suite fairly badly. SPEC2000 mostly measures real applications, such as gzip, and is not a series of microbenchmarks.
http://www.archivum.info/autoconf-patches@gnu.org/2007-01/00027/Re:-changing-quot-configure-quot-to-default-to-quot-gcc-g-O2-fwrapv-...-quot.html http://www.archivum.info/autoconf-patches@gnu.org/2007-01/00...
- tedunangst 11y agoInteresting, though I still wonder to what extent this is a result of optimizations chasing SPEC. Alternatively, could similar optimizations be made to work with defined behavior? (How will rust fair with "less undefined" behavior?) As I mentioned, it's kind of crazy that I might substantially impair the performance of gzip by changing a few ints to unsigned.