So do webservers written in Python. I don't think that was the point of this project.
now, you could argue if that were that the case, wth is that person doing there anyway.
also if you compile something like `return 0;` it used to be compiled down to `xor eax,eax; ret;`, but meh barely anyone i know coding these days even knew this to begin with.
Then again almost everything about assembly gets a bit "isn't that what we made other languages for?"
For modern out-of-order CPUs - xor reg1,reg2 is problematic because the result depends on the previous contents of the register. Hence it cannot be executed out of order.
However as a special case xor reg1,reg1 (along with sub reg1,reg1) will be detected by the cpu (intel anyway) as a 'zero idiom' instruction and because it has a smaller opcode than mov reg,0 its preferred.
There are also other complex reasons - for detailed info see 3.5.1.8 in the Intel optimization manual.
The initial claim was that mov reg,0 was slower to execute.