News for hackers. Stuff that matters.
Re:Hello from a libc-free world by alexscheelmeyer on Wednesday October 26, 2011 @11:54AM (#3159092)
Both will work. The xor version is an old trick that many years ago was faster to execute. I do not think that is still the case, but there is still the difference that the XOR opcode is only one byte and the mov version is multiple, so it saves a few bytes in the executable.
Re:Hello from a libc-free world by jevinskie on Wednesday October 26, 2011 @01:13PM (#3159494)
More importantly, these days, is that it saves a few bytes in the caches.