Artöm Bakri Al-Sarmini
Не обязательно 0, по идее любое значение, влезающее в регистр в ситуации
T f();
T g() {
return f();
}
Было бы здорово, если б можно было отключить сохранение фрейма стека для хвостовых вызовов для stdcall функций, типа
int __stdcall g(int);
void __stdcall h(int, int);
int __stdcall k(int, int, const int);
int f() {
g(1);
h(2,3);
return k(4,5,6);
}
pop eax
push 6
push 5
push 4
push eax
push 3
push 2
push offset k
push 1
push offset h
jmp offset g