objdump 用法

objdump -S  a.out      反汇编!!!!!

objdump -d a.out        反汇编       

a@65-server:~/learn$ objdump

-p, --private-headers Display object format specific file header contents
-h, --[section-]headers Display the contents of the section headers
-x, --all-headers Display the contents of all headers
-d, --disassemble Display assembler contents of executable sections

-S, --source             Intermix source code with disassembly

GCC编译过程
-------------------------------------
    Pre-Processing   cpp        预处理       gcc -E  可以查看
    Compiling        ccl        编译              gcc -S  可以得到
    Assembling       as         汇编          gcc -c  进行汇编
    Linking          ld         链接

原文地址:https://www.cnblogs.com/ai616818/p/2569919.html