linux nasm helloworld demo
please see:
http://blog.markloiseau.com/2012/04/hello-world-nasm-linux/
http://www.ibm.com/developerworks/cn/linux/l-gas-nasm.html
http://blog.youkuaiyun.com/flickedball/article/details/4812051
compile step:
1:输入nasm –f elf hello.s
a error :if fileformat not right.please use nasm -df
2.输入ld –s –o hello hello.o
本文介绍如何使用NASM在Linux环境下编译一个简单的Hello World程序。首先使用NASM将汇编语言源文件编译成目标文件,然后通过链接器ld将其链接成可执行文件。文章提供了详细的编译步骤及可能遇到的错误提示。
2681

被折叠的 条评论
为什么被折叠?



