Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Frame Pointer
@ 1996-12-04  5:00 Pierre-Etienne Moreau
  1996-12-06  5:00 ` Dirk Grunwald
  0 siblings, 1 reply; 2+ messages in thread
From: Pierre-Etienne Moreau @ 1996-12-04  5:00 UTC (permalink / raw)




does anyone know how to access to the Frame Pointer of the function
who called me ?

Suppose you have

f()
{
  g();
}

g() is written in assembly and f() in C.
I would like to know, in g(), the frame pointer of f()

I spent many hours on this problem, and I did not find any solution.

If you have any idea, please, send me a mail.


			Thanks in advance,
			Pierre-Etienne
			



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Frame Pointer
  1996-12-04  5:00 Frame Pointer Pierre-Etienne Moreau
@ 1996-12-06  5:00 ` Dirk Grunwald
  0 siblings, 0 replies; 2+ messages in thread
From: Dirk Grunwald @ 1996-12-06  5:00 UTC (permalink / raw)



Pierre-Etienne Moreau <moreau@huggy.loria.fr> writes:
> f()
> {
>   g();
> }
> 
> g() is written in assembly and f() in C.
> I would like to know, in g(), the frame pointer of f()
> 
> I spent many hours on this problem, and I did not find any solution.
> 
> If you have any idea, please, send me a mail.
---

The Alpha calling convention doesn't support a frame pointer unless
the function uses alloca() or uses nested procedueres, Thus, you don't
have a frame-pointer in C - the SP is used for everything.

However, see "man unwind" for information that will do what you want.
You'll need a copy of the Alpha calling conventions manual. Postscript
copies are available online, hollar if you need one.



-- 
Dirk Grunwald                 Assoc. Prof, Univ. of Colorado at Boulder



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-12-06  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-12-04  5:00 Frame Pointer Pierre-Etienne Moreau
1996-12-06  5:00 ` Dirk Grunwald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox