Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
teknas
· 4y ago · 0 comments
It's not that easy, you also have to account for the pointer sizes (4 bytes instead of 8). Also alignment requirements are different on x32.
Comments
[–]
_8j50
4y ago
It's not only that either. OP used rdi because of calling convention, in x32 you would need to arguments on the stack instead and reference them +ebp instead of using registers if you want non-asm code to call your function.