Function Prologue and Epilogue in C

后端 未结 4 954
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 04:56

I know data in nested function calls go to the Stack.The stack itself implements a step-by-step method for storing and retrieving data from the stack as the functions get ca

4条回答
  •  悲&欢浪女
    2020-11-30 05:38

    Every function has an identical prologue(The starting of function code) and epilogue ( The ending of a function).

    Prologue: The structure of Prologue is look like: push ebp mov esp,ebp

    Epilogue: The structure of Prologue is look like: leave ret

    More in detail : what is Prologue and Epilogue

提交回复
热议问题