(1). main.c
long long a;
int main( void )
{
a = 5;
return 0;
}
(2). #gcc -g main.c -o main //带调试信息编译,然后带源代码反汇编
(3). #objdump -D -S main //反汇编该程序,得到该程序的汇编代码
int main( void )
{
8048354: 8d 4c 24 04 lea 0x4(%esp),%ecx
8048358: 83 e4 f0 and $0xfffffff0,%esp
804835b: ff 71 fc pushl 0xfffffffc(%ecx)
804835e: 55 push %ebp
804835f: 89 e5 mov %esp,%ebp
8048361: 51 push %ecx
a = 5;
8048362: c7 05 68 95 04 08 05 movl $0x5,0x8049568
8048369: 00 00 00
804836c: c7 05 6c 95 04 08 00 movl $0x0,0x804956c
8048373: 00 00 00
return 0;
8048376: b8 00 00 00 00 mov $0x0,%eax
}