使用nasm和clang

nasm编译

  • nasm -f macho64 --prefix _ demo.asm # --prefix是为gobal的标签添加前缀, 链接时根据的都是以_开头的

clang编译

  • clang test.c demo.o
posted @ 2018-09-24 14:22  gogogo11  阅读(460)  评论(0编辑  收藏  举报