by Sulik · 6y ago · 0 comments
It's worth adding that the compilers themselves aren't perfect - you can use LLVM's code to try and predict how your loop will perform (LLVM-MCA) and last time I checked it wasn't amazingly accurate.
The only thing that you can predict about compiled C code is the instructions in the C abstract machine, because that’s what C targets.