4 ms·
It should be noted that using 64-bit operands, even in 64-bit mode, incurs an extra penalty of 1 byte per instruction, for the REX prefix. The same applies to u
by userbinator 12y ago
It should be noted that using 64-bit operands, even in 64-bit mode, incurs an extra penalty of 1 byte per instruction, for the REX prefix. The same applies to using the extended registers (the uncreatively-named "r8" through "r15".) This is very much not noticeable for microbenchmarks, where all the code of a loop fits in the cache, but for bigger ones, the effects of icache misses can become quite significant. A smaller instruction sequence that is slower than a larger one when microbenchmarked can become much faster once that code is benchmarked as part of a whole system.
- nitrogen 12y ago(the uncreatively-named "r8" through "r15".) I'd much rather have numbered registers that can be used for anything than named registers that have usage limitations.
- colanderman 12y agoI suspect that aside was written tongue-in-cheek.
- gioele 12y ago> incurs an extra penalty of 1 byte per instruction, for the REX prefix. Any hope to see a Thumb mode for x86-64?
- deleted 12y ago[deleted]