Skip to content

Latest commit

 

History

History

linux

Assembly Language

來源 -- https://cs.lmu.edu/~ray/notes/gasexamples/

Linux 系統呼叫表 -- https://blog.rchapman.org/posts/Linux_System_Call_Table_for_x86_64/

這些範例只能在 Linux 上跑

在 windows 上要連 linux ,請先安裝 putty (mac 用 ssh)

然後連上我的虛擬主機

網址: [email protected] 密碼: csienqu

連上後請切到資料夾 ~/course/sp/code/c/03-asmVm/asm/linux

之後就可以執行範例,例如 hello.s

先切到 01-hello

$ gcc -c hello.s
$ ld hello.o -o hello
$ ./hello
Hello, world

參考