|
|
|
|
|
by Sulik
2096 days ago
|
|
To me, the philosophy of C (and even C++ before things became nuts) is that you should be able to reasonably guess the assembly code resulting from the C code, the idea being that you can write assembly code with much less typing.
These days, things seem to be moving in a more dogmatic direction with the underlying assumption that the vast majority of programmers are bad programmers. |
|
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.