HNHacker News
TopNewBestAskShowJobs

cmmon

1 karma · joined November 9, 2023

submissionscomments
cmmon··on Writing a Compiler is Surprisingly Easy (part 1)
I did not understood the stack part.

Lets say the slot value is 2, instruction for this would be to move the value located at %rsp-24, into the %rax register.

So your instruction becomes mov -24(%rsp), %rax

Correct?