目录 参考实例 参考 实例 #include "stdio.h" int main() { int a = 3; int b = 4; a += 1; int c = 0; c = a + b; return 0; } 编译 gcc test.c -o test -g 有-g参数才可以将代码和反汇编进行对应,否则objdump -S和-d一样 然后输入指令查看反汇编 objdump -S test 反汇编如下