ENTER and LEAVE in Assembly?

前端 未结 3 1670
既然无缘
既然无缘 2020-12-28 14:37

I was reading The Art of Assembly Language (Randall Hyde, link to Amazon) and I tried out a console application in that book. It was a program that created a new co

3条回答
  •  遥遥无期
    2020-12-28 15:21

    Enter and leave just setup the stack frame. Usually compilers generate code that directly manipulates the stack frame pointers as enter and leave aren't exactly fast relative to mov/sub (they used to be though, back in the 286 days :-) ).

提交回复
热议问题