Why does IA-32 have a non-intuitive caller and callee register saving convention?

前端 未结 4 1320
借酒劲吻你
借酒劲吻你 2020-12-03 13:20

The common calling conventions for IA-32 say:

• Callee-save registers
%ebx, %esi, %edi, %ebp, %esp
Callee must not change these.  (Or restore the caller\'s v         


        
4条回答
  •  無奈伤痛
    2020-12-03 13:47

    In short, caller save are because of argument passing. Everything else is callee save.

提交回复
热议问题