实验
源代码:
int g(int x)
{
return x + 4;
}
int f(int x)
{
return g(x);
}
int main()
{
return f(10) + 3;
}
输入:
gcc -S -o main.s main.c -m32
反汇编代码:
.file "201504411_\345\217\215\346\261\207\347\274\226.c"
.text
.globl g
.type g, @function
g:
.LFB0:
.cfi_startproc
pushl %ebp
.cfi_def_cfa_offset 8
.cfi_offset 5, -8
movl %esp, %ebp
.cfi_def_cfa_register 5
movl 8(%ebp), %eax
addl $4, %eax
popl %ebp
.cfi_def_cfa 4, 4
.cfi_restore 5
re