![]() | ![]() | ![]() | Saving Registers during Calls |
Note: You have to generate the register saving instructions before you know what registers need to be saved. The fact that you are generating assembly code lets you leave this problem to the assembler by using a symbolic name for the mask that determines what registers need to be saved.
In both cases, the stack pointer will be incremented as part of the register saving (rather than treating them as locals counted in determining localsize).
![]() | ![]() | ![]() | Saving Registers during Calls |