So you simply need to move the stack pointer by adding the stackframesize to the stack pointer using ai $sp, $sp, FRAME_SIZE.
所以您只需通过使用 ai $sp, $sp, FRAME_SIZE 将堆栈框架大小加到堆栈指针来移动堆栈指针即可。
2
mwarn-framesize=framesize and -mwarn-dynamicstack: These options cause a compile-time check whether a function exceeds a given stackframesize or uses dynamically sized stack frames.
You might wonder why I check whether the method is static at the start of my parameter size calculation, then initialize the stackframe slot to zero if it is (as opposed to one if it is not).