5 ms·
I wonder what this looks like on modern compilers like today's MSVC, gcc, or clang.
by DiabloD3 11y ago
I wonder what this looks like on modern compilers like today's MSVC, gcc, or clang.
- tptacek 11y agoVery similar. Maybe more register-register now that we have all the x64 regs, and fewer pushes, what with the x64 calling convention.
- haberman 11y agoVery unlikely that x87 instructions (fld and fstp) would show up in the top 20 these days; they are almost completely superseded by SSE. "inc" is often avoided these days due to partial register stalls on EFLAGS (http://stackoverflow.com/questions/12163610/why-inc-and-add-1-have-different-performances http://stackoverflow.com/questions/12163610/why-inc-and-add-...).