Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
raxxorraxor
on Nov 24, 2022
|
parent
|
context
|
favorite
| on:
Inverting a binary tree using x64 assembly
x32 converter for GNU/Linux:
sed -i 's/r//g' invert_tree.asm > invet_tee.asm
teknas
on Nov 24, 2022
|
next
[–]
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.
badrabbit
on Nov 24, 2022
|
parent
|
next
[–]
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.
junon
on Nov 24, 2022
|
prev
|
next
[–]
x16, you mean :D
account42
on Nov 25, 2022
|
prev
[–]
x32 is still amd64. Perhaps you meant x86 but see the other comments for that.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: