x86_64 Assembly Linux System Call Confusion

后端 未结 5 1874
一生所求
一生所求 2020-12-09 09:53

I am currently learning Assembly language on Linux. I have been using the book \'Programming From the Ground Up\' and all the examples are 32-bit. My OS is 64-bit and I have

5条回答
  •  粉色の甜心
    2020-12-09 10:52

    If you check /usr/include/asm/unistd_32.h exit corresponds to 1 but in /usr/include/asm/unistd_64.h exit corresponds to 60.

提交回复
热议问题