x86 In-Depth: CDECL Calling Convention Complete Tutorial - BONUS video

preview_player
Показать описание
This video demonstrates all steps of stack setup, stack teardown, and reference of both local variables and arguments/parameters in the CDECL x86 calling convention. If you are confused about how ebp or esp are used, this is the video for you.
Рекомендации по теме
Комментарии
Автор

Surely that's actually cdecl calling convention, where the caller cleans the stack of parameters.
Also, the compiler won't create BOTH lines 29 and also line 30, because they do the same thing (ditto with lines 54 and 55, only either, not both.

markcranness
Автор

Nice example, though I fear it mightn't be too clear for people just starting out and who don't understand stack manipulation already...

AuctorisVideo