Relative Content

Tag Archive for assemblygcc

Purpose of mov %rax,-0x10(%rbp) then -0x10(%rbp),%rax

I disassembled a function that made a syscall to compare why mine wasn’t working, and I noticed these two strange instructions after the syscall instruction when this same function is compiled with GCC. Can anyone explain to me what purpose this serves?