赞
踩
# include <iostream> using namespace std; int sum(int a, int b) { int temp = 0; temp = a + b; return temp; } int main() { int a = 10; int b = 20; int ret = sum(a, b); cout << "ret is: " << ret << endl; return 0; }
<=4字节 eax通过寄存器带出来
4字节 < < 8字节 eax edx 两个寄存器带出来
大于8字节, 产生临时量带出返回值了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。