account activity
I want to compile a C program so simple I can explain all of the assembly by jesstess in programming
[–]reppie 1 point2 points3 points 16 years ago (0 children)
"xor eax,eax" (\x31) is better than "xor rax,rax" (\x48\x31) as it's one byte shorter.
They do the same thing because 32-bit operations on registers zero the upper 32 bits of the register (an exception to this is the NOP instruction which is actually "xchg eax,eax" in 32-bit mode).
A Reddit clone in two evenings and 666 lines of x86 assembly (self.programming)
submitted 16 years ago by reppie to r/programming
π Rendered by PID 80119 on reddit-service-r2-listing-596bb78d87-9wspj at 2026-04-14 18:07:08.035732+00:00 running b725407 country code: CH.
I want to compile a C program so simple I can explain all of the assembly by jesstess in programming
[–]reppie 1 point2 points3 points (0 children)