如何從GCC的C/C+源代碼中獲得匯編語言輸出?一個人是怎么做到的?如果我想分析某樣東西是如何編譯的,我將如何獲得發出的程序集代碼?
3 回答

三國紛爭
TA貢獻1804條經驗 獲得超7個贊
-S
gcc -S helloworld.c
helloworld.s
-o
gcc -S -o my_asm_output.s helloworld.c
objdump
--disassemble
-d
objdump -S --disassemble helloworld > helloworld.dump
-g
file helloworld
- 3 回答
- 0 關注
- 937 瀏覽
添加回答
舉報
0/150
提交
取消