中国开发网: 论坛: 程序员情感CBD: 贴子 276805
holly
-O3 就 inline 了
[lee@daemon] /home/lee>cat i.c
int x = 0;

void __inline__ f()
{
x = 1;
}

int main()
{
f();
return 0;
}



08048490 <main>:
8048490: 55 push %ebp
8048491: 89 e5 mov %esp,%ebp
8048493: 83 ec 08 sub $0x8,%esp
8048496: 83 e4 f0 and $0xfffffff0,%esp
8048499: 83 ec 10 sub $0x10,%esp
804849c: c7 05 64 96 04 08 01 movl $0x1,0x8049664
80484a3: 00 00 00
80484a6: 31 c0 xor %eax,%eax
80484a8: c9 leave
80484a9: c3 ret
80484aa: 90 nop
80484ab: 90 nop

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录