#include <stdio.h>
int call(int a,int b,int c,int d,int e,int f){
int sum =0;
int v1 =1,v2 =2,v3 =3,v4 =4;
sum = a+b+c+d+e+f+v1+v2+v3+v4;
return sum;
}
int main(void){
int sum =0;
sum =call(1,2,3,4,5,6);
printf("sum = %d\n",sum);
return 0;
}
.text:004010BF push 6
.text:004010C1 push 5
.text:004010C3 push 4
.text:004010C5 push 3
.text:004010C7 push 2
.text:004010C9 push 1
.text:004010CB call j_?call@@YAHHHHHHH@Z ;
var_14 = dword ptr -14h
var_10 = dword ptr -10h
var_C = dword ptr -0Ch
var_8 = dword ptr -8
var_4 = dword ptr -4
.text:00401020 push ebp
.text:00401021 mov ebp, esp
.text:00401023 sub esp, 54h
.text:00401026 push ebx
.text:00401027 push esi
.text:00401028 push edi
.text:00401029 lea edi, [ebp+var_54]
.text:0040102C mov ecx, 15h
.text:00401031 mov eax, 0CCCCCCCCh
.text:00401036 rep stosd
.text:00401038 mov [ebp+var_4], 0
.text:0040103F mov [ebp+var_8], 1
.text:00401046 mov [ebp+var_C], 2
.text:0040104D mov [ebp+var_10], 3
.text:00401054 mov [ebp+var_14], 4
.text:0040105B mov eax, [ebp+arg_0]
.text:0040105E add eax, [ebp+arg_4]
.text:00401061 add eax, [ebp+arg_8]
.text:00401064 add eax, [ebp+arg_C]
.text:00401067 add eax, [ebp+arg_10]
.text:0040106A add eax, [ebp+arg_14]
.text:0040106D add eax, [ebp+var_8]
.text:00401070 add eax, [ebp+var_C]
.text:00401073 add eax, [ebp+var_10]
.text:00401076 add eax, [ebp+var_14]
.text:00401079 mov [ebp+var_4], eax
.text:0040107C mov eax, [ebp+var_4]
.text:0040107F pop edi
.text:00401080 pop esi
.text:00401081 pop ebx
.text:00401082 mov esp, ebp
.text:00401084 pop ebp
.text:00401085 retn
var_14 = -0x14
var_10 = -0x10
var_8 = -8
.text:0000851C STMFD SP!, {R11,LR}
.text:00008520 ADD R11, SP, #4
.text:00008524 SUB SP, SP, #0x10
.text:00008528 MOV R3, #0
.text:0000852C STR R3, [R11,#var_8]
.text:00008530 MOV R3, #5
.text:00008534 STR R3, [SP,#0x14+var_14]
.text:00008538 MOV R3, #6
.text:0000853C STR R3, [SP,#0x14+var_10]
.text:00008540 MOV R0, #1
.text:00008544 MOV R1, #2
.text:00008548 MOV R2, #3
.text:0000854C MOV R3, #4
.text:00008550 BL call
……
.text:0000850C MOV R0, R3
.text:00008510 MOV SP, R11
.text:00008514 LDMFD SP!, {R11}
.text:00008518 BX LR
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!
上传的附件: