(no title)
CmdDot | 8 years ago
I'd hope maybe, just maybe, this would be enough to put a focus on compilers producing code that ends up using processor-optimized paths chosen at runtime, to avoid "overheads ranging from 10% to 50%".
Though, in this case, that would essentially mean making the entire executable region writable for some window of time, which is clearly too dangerous, so I guess the 0.1% speedups from compiling undefined behavior in new and interesting ways, will continue taking priority.
I mean, it's a compiler flag right, obviously whoever's going to run a program on an unaffected platform will take the effort to recompile everything with the flag removed.
Just the same way every serious application currently provides different executables for running on systems where SSE2, SSE4.1, or AVX2 is present.
maxerickson|8 years ago
mike_hearn|8 years ago
CmdDot|8 years ago
gmueckl|8 years ago
lower|8 years ago
For example, glibc chooses optimised machine code for memcpy depending on the CPU it runs on.
ant6n|8 years ago
gmueckl|8 years ago