You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some confused googling, this code turns out to be correct. In the power ABI, there's a reserved area at the bottom of the stack, so stack layouts look like this (growing downwards):
For the caller to access its incoming arguments, it must add to SP its own frame size (its reserved space + its locals) and then add the callers reserved space. There are two reserved spaces between the callee's stack pointer and the callee's incoming stack arguments!
reserved_stack_space
is already taken into account byframe_size
, and then added on explicitly again forIncoming
inslot_offset
.ocaml/asmcomp/power/emit.mlp
Line 61 in 03c33f5
The text was updated successfully, but these errors were encountered: