Hi,
this instruction allocates stack for the function. At the end of the function, there is something like se_addi r1,0x20 which returns stack pointer to the previous position (before function was called).
Regards,
Martin
Hi,
this instruction allocates stack for the function. At the end of the function, there is something like se_addi r1,0x20 which returns stack pointer to the previous position (before function was called).
Regards,
Martin
Hello,
rsp is only (compiler) symbolic name for r1 register. If you look at the PPC EABI standard, you will find there that r1 register is always stack pointer.
What do you mean by push and pop functions?
If you create and call function in C language, compiler automatically create stack frame for this function.
But you can use nofralloc directive in your asm function:
Regards,
Martin