Re:Web server for Linux written in amd64 assembly
by xyzzy123 on Monday February 03, 2014 @07:10AM
(#7170197)
Personally I find the xor form easier to follow, it's SUCH a long-standing convention that if I saw a mov rax, 0 I would wonder what was going on.
[ Parent
| on HN ]
Re:Web server for Linux written in amd64 assembly
by rjzzleep on Monday February 03, 2014 @02:04PM
(#7172737)
same here. _but_ if you weren't proficient in writing and reading asm the statement would no longer be true.
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.