Re: what is a stack

From: Sudsy (bitbucket44_at_hotmail.com)
Date: 07/17/04


Date: Sat, 17 Jul 2004 03:33:22 -0400

Roedy Green wrote:
<snip>
> When a method returns, it pops its locals off the stack and restores
> the instruction pointer to what it used to be in the caller.
>
> I forget who pops the parameters, the caller or the callee. I vaguely
> recall the callee.

Remember BALR 12,13? And the STM 11,15 which typically proceeded?
Yes, it's normally up to the callee to reset the stack to the
state upon calling, although it can set it up by a fullword in
order to store the return value...
Was that fun or what?!
(most youngsters will find themselves asking WHAT?)



Relevant Pages

  • Re: calling convention
    ... caller and callee communicate, be it via the stack or registers. ... without consideration of calling convention.. ...
    (microsoft.public.vc.language)
  • Re: write statement output buffer flush off on Sun
    ... > no tests or other conditional activities in either the caller or the ... > callee that need to be done in any order or that need to rely on ... > any form of branch prediction, speculative execution, or anything ... > up the stack properly and returns to the caller directly at the ...
    (comp.lang.fortran)
  • Re: [OT] [Question]activities of stack pointer and frame pointer when function called
    ... >>I suspect you don't understand what as stack frame is. ... A function stack frame is a method to keep track of function ... At the point of creation the caller is ... When the callee returns to its ...
    (comp.lang.c)
  • Re: what is a stack
    ... it pops its locals off the stack and restores ... >> the instruction pointer to what it used to be in the caller. ... >> I forget who pops the parameters, the caller or the callee. ...
    (comp.lang.java.programmer)
  • Re: Passing parameter to function not expecting parameter
    ... some data hanging around on a stack or something that could get future ... caller and callee, each side bearing part of the responsibility. ... If the caller says "I'm pushing two arguments and I know the called ...
    (comp.lang.c)