why to use ebp in function prologue/epilogue?

后端 未结 3 976
长情又很酷
长情又很酷 2020-12-19 04:26

Some time ago I was experimenting with writing assembly routines and linking it with C programs and I found that I just can skip standard C-call prologue epilogue



        
3条回答
  •  心在旅途
    2020-12-19 04:45

    It works, However, once you'll get an interrupt, the processor will push all it's registers and flags into the stack, overwriting your value. The stack is there for a reason, use it...

提交回复
热议问题