天天看點

使用nasm和clang

nasm編譯

  • nasm -f macho64 --prefix _ demo.asm # --prefix是為gobal的标簽添加字首, 連結時根據的都是以_開頭的

clang編譯

  • clang test.c demo.o

繼續閱讀