Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LR save word in the stack frame

25 views
Skip to first unread message

void.cpp

unread,
Aug 27, 2011, 11:28:01 AM8/27/11
to
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 the link register at the time the function
> was entered in the LR save word of its caller’s stack frame and shall establish 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 new messages