You are viewing a single comment's thread from:

RE: Creating faster C/C++ binaries without changing a single line of code

in #development9 years ago

Reminds me the old days when I was programming ASM on a 1.77Mhz CPU ;)
Using xor ax,ax instead of mov ax,0 to reset a register, because we had to count CPU cycles and the first instruction set used only 1 vs 3 for the second.

Great post!

Sort:  

Good ol' days of 8-16 bit registers, heh... It probably pays to xor even today btw. I see it regularly in the XMM registers of SSE code. They wouldn't do it if it wasn't faster but I haven't actually measured it.

Thanks btw.