反汇编

问题一:编写一个空函数,没参数也没有返回值,并分析函数的反汇编

void function() {

}

int main() {
    function();
}

问题二:编写一个函数能够对任意2个整数实现加法,并分析函数的反汇编

int plus1(int x, int y) {
    return x + y;
}


int main() {
    plus1(1, 2);
}

问题三:编写一个函数,能够对任意3个整数实现加法,并分析函数的反汇编(要求使用上一个函数)

int plus2(int x, int y, int z) {
    int r;
    int t;
    t = plus1(x, y);
    r = plus1(t, z);
    return r;
}

int main() {
    plus2(2, 3, 4);
}


hhhhh