C function calls, about the execution of function calls in C

Updated on technology 2024-05-18
2 answers
  1. Anonymous users2024-02-10

    result love(boy, girl)if( boy.There is a room () and boyThere is a car ();

    return girl.marry (boy);

    if( girl.Willing to wait ().

    while(!(boy.Make > 100,000 and girlAffection > 8).

    for( day=1; day <=365;day++)if( day == Valentine's Day )

    if( rose )).

    girl.Affection++;

    elsegirl.Affection++;

    if( day == girl.Birthday).

    if( rose )).

    girl.Affection++;

    elsegirl.Affection++;

    boy.Desperate to make money ();

    if( boy.There is a room () and boyThere is a car ();

    return girl.marry (boy);

    Age++; girl.Affection++;

    return another_boy);

  2. Anonymous users2024-02-09

    There are six steps to the execution of a function call in C++:

    1. Parameter transfer: Stack the function parameters: mov eax, dword ptr [n]; n is the parameter variable).

    2. Operation: Press the frame pointer into the stack: push ebp; Make the frame pointer equal to the stack pointer:

    mov ebp,esp;To self-subtract the stack pointer, the resulting memory address should be (sufficient) to store the local state of the called function: sub esp, 0cch.

    3. Pass in the save state: push ebx; Save the value of the EBX register; push esi ;Holds the value of the ESI register; push edi ;Holds the value of the EDI register.

    4. Load EDI: LEA EDI, [EBP-0CCH]; 0cch is the size of the currently active record.

    5. Restore the incoming save state: 00411417 pop edi; 00411418 pop esi;The POP EBX stack pointer is moved up to restore the space; add esp,0cch。

    6. The function returns to free space: make the stack pointer equal to the frame pointer: mov esp, ebp; Eject the old frame pointer from the stack: pop ebp; Return: ret.

Related questions
5 answers2024-05-18

mid(string a, start looking for the bit value (data b), find the number of digits (data c)) Your function looks like this. >>>More

6 answers2024-05-18

This thing is basically useless.

va_list arguments; >>>More

11 answers2024-05-18

using systme;

using ; >>>More

4 answers2024-05-18

1.This will be referenced in the Project References.

aaa as asdfg 'asdfg is the name of the class module. >>>More

6 answers2024-05-18

#include

void sort(int arr,int n); >>>More