1
Why xor eax, eax?
Why do compilers love xor-ing registers so much?
Sometime around 2010, while I was working at Google, I came up with a fun mini project to marry my love of retro computing with my excitement for working at big G.
Visit xania.org → RSS feedOn Hacker News May 2012 – Dec 2025
Software Engineering 10Tools & Productivity 5Systems & Performance 5
Why do compilers love xor-ing registers so much?
Announcing AoCO 2025 - daily December posts about compiler optimisations
We learn why adding on x86 isn't as obvious as you might think
Pattern recognition can see through obfuscated code to find the right instruction
Sometimes compilers can surprise and delight even a jaded old engineer like me