g: pushl %ebp movl %esp,%ebp movl 8(%ebp),%eax addl $8,%eax popl %ebp ret main: pushl %ebp movl %esp,%ebp pushl $8 call g subl $8,%eax movl %ebp,%esp ret 我翻译成 int g(int x) { return x+8; } int main(void) { return g(8)+8; } 不知道翻译对了没 对了, 这段, 汇编语言