f



LR save word in the stack frame

Hello experts,

I am reading the Systeam V ABI for PowerPC and have a question about
the LR save word in the stack frame.

The ABI says:

> Before a function calls another function, it shall save the contents of t=
he link register at the time the function
> was entered in the LR save word of its caller=92s stack frame and shall e=
stablish its own stack frame.

Here is my question:

Why should LR save word be saved in the caller's stack frame? Why not
just use the callee's stack frame?

v.c.
0
void
8/27/2011 3:28:01 PM
comp.sys.powerpc.tech 819 articles. 1 followers. Post Follow

0 Replies
288 Views

Similar Articles

[PageSpeed] 57

Reply: