access off end of array
access off end of array
Posted Mar 24, 2013 19:02 UTC (Sun) by iabervon (subscriber, #722)In reply to: access off end of array by pflugstad
Parent article: Regehr: GCC 4.8 Breaks Broken SPEC 2006 Benchmarks
It's like writing an exam question: it would be easy to write a question that everybody would get right, but you want to write a question that people who know the material will get right more often than people who don't. Obviously, in ordinary life, you want to ask questions which will be more likely to get correct answers, and you want to write code that all compilers will make as fast as possible, but that's not the situation here.
Posted Mar 25, 2013 5:09 UTC (Mon)
by cesarb (subscriber, #6266)
[Link]
It was not written to stress test compilers. It is just not very optimized (and since it is only a reference implementation, it does not have to be).
access off end of array