[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] Re: frame and return address of functions
From: |
Gaius Mulley |
Subject: |
Re: [Gm2] Re: frame and return address of functions |
Date: |
10 Jul 2008 15:10:40 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
John O Goyo <address@hidden> writes:
> Gaius Mulley wrote:
> > Hi,
> > these can now be obtained by the new builtin functions (frame_address
> > and return_address). So for example the following code sets the
> > return address in 'a'. The parameter indicates how many levels you
> > wish to go back up the call stack.
>
> I am curious as to why these were added.
Hi John,
at present, only for completeness as they were commented out in
gm2/gm2builtins.c (all the work is done by the GCC backend). They
might be useful for embedded systems I guess,
regards,
Gaius