书上写 gcc -O1 -s code.c
但是不管用 gcc 还是 clang 都显示:
ld: warning: option -s is obsolete and being ignored
Google 不到,原来是 -s 被 Google 当成搜索指令了。
但现在还是 Google 不到解决方法。
只要把你的-s变成-S就可以了
clang -S -mllvm --x86-asm-syntax=[intel|att] your_source_code.c
书上写 gcc -O1 -s code.c
但是不管用 gcc 还是 clang 都显示:
ld: warning: option -s is obsolete and being ignored
Google 不到,原来是 -s 被 Google 当成搜索指令了。
但现在还是 Google 不到解决方法。
只要把你的-s变成-S就可以了
clang -S -mllvm --x86-asm-syntax=[intel|att] your_source_code.c