天天看点

使用nasm和clang

nasm编译

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

clang编译

  • clang test.c demo.o

继续阅读