Re: Difference Between Stack Pointer and Frame Pointer
- From: iddw@xxxxxxxxxxx (Dave Hansen)
- Date: Tue, 05 Jul 2005 14:14:53 GMT
On 4 Jul 2005 00:53:06 -0700, "toby" <toby@xxxxxxxxxxxxxxxxxxx> wrote:
>
>
>Dave Hansen wrote:
[...]
>> No. The stack pointer operates on the stack. The frame pointer
>> operates on the frame. Very often, the frame is located in the stack,
>> but it ain't necessarily so.
>
>Care to name a counterexample?
Most AVR compilers have a data stack separate from the hardware stack.
In this case it's on "a" stack, but not "the" stack.
Most 8051 compilers keep call frames completely separate from any
stack. However, functions that use this calling convention are not
reentrant.
I've heard rumors about (but have no experience with) architectures
like IBM's AS/400 that allocate call frames from the heap. The
reasons for this have to do with security, integrity, and
fault-tolerance.
I expect there are more.
Regards,
-=Dave
--
Change is inevitable, progress is not.
.
- Follow-Ups:
- Re: Difference Between Stack Pointer and Frame Pointer
- From: Richard
- Re: Difference Between Stack Pointer and Frame Pointer
- References:
- Difference Between Stack Pointer and Frame Pointer
- From: ravikumar . n
- Re: Difference Between Stack Pointer and Frame Pointer
- From: Dave Hansen
- Re: Difference Between Stack Pointer and Frame Pointer
- From: toby
- Difference Between Stack Pointer and Frame Pointer
- Prev by Date: Re: PROBLEM! misc.busines...
- Next by Date: Re: Global variable memory allocation
- Previous by thread: Re: Difference Between Stack Pointer and Frame Pointer
- Next by thread: Re: Difference Between Stack Pointer and Frame Pointer
- Index(es):
Relevant Pages
|