Hacker News new | ask | show | jobs
by MathMonkeyMan 56 days ago
`xor eax, eax` is less code when assembled. That's why compilers generate it.
1 comments

..and reliably generate it for decades, but you can still manually do it in C for bonus stylistic points!