|
|
|
|
|
by GuB-42
355 days ago
|
|
"xor ax, ax" is still in use today. The main advantage is that it is shorter, just 2 bytes instead of 3 for the immediate, the difference is bigger in 32 and 64 bit mode as you have to have all these zeroes in the instruction. Shorter usually mean faster, even if the instruction itself isn't faster. |
|
Shorter basically means you can fit more in instruction cache, which should in theory improve performance marginally.