Unix Stack Frame Questions

Chris Dollin kers at hplb.hpl.hp.com
Mon Apr 8 18:57:47 AEST 1991


Rahul Dhesi says:
   >>But a stack frame seems to be the most efficient way of dealing with
   >>calls and returns.
   >No, there are =many= better ways.
   BZZZZZZZZZZZZZZZZZZ....
   A "stack frame" is the ONLY way of dealing with calls and returns *if
   they may be recursive*.
   *Where* the stack frame lies is another question.  Part of it may be in
   registers.  It's still a stack frame.

Does calling it a stack frame make it a stack frame? It might be just a record
in the heap. Whether we call that a ``stack frame'' or not seems to be a matter
of taste.
--

Regards, Kers 24059 | "You're better off  not dreaming of  the things to come;
Caravan:            | Dreams  are always ending  far too soon."



More information about the Comp.unix.programmer mailing list