Re: what is a stack

From: Liz (Liz_at_nospam.com)
Date: 07/18/04


Date: Sun, 18 Jul 2004 02:59:27 GMT


"Sudsy" <bitbucket44@hotmail.com> wrote in message
news:40F8D642.4080305@hotmail.com...
> 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?)
>
Finally, someone is making some sense. It takes me back a few years.



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: 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)
  • Re: what is a stack
    ... > the instruction pointer to what it used to be in the caller. ... > I forget who pops the parameters, the caller or the callee. ... it's normally up to the callee to reset the stack to the ...
    (comp.lang.java.programmer)