Re: determining return address of a function



Enrique Perez-Terron wrote:

> The assembly code of the call of test1() may possibly contain some register
> shuffling and stack operations after the call. The return address is the
> address of the first assembly instruction after the call.
>
Thanks Enrique for the explaination. Now I know that exactly.

But I wonder, what are the possible uses of knowing the return
address? knowing the frame address of a function makes sense, because
you can view the values of local variables within that function . But
somehow I cannot understand the use of return address.

Regards,
Madhav.

.



Relevant Pages

  • Re: Bug in MFC CList?
    ... I mean, in assembly code. ... I normally use malloc/freeor new/delete, knowing that it is the less expensive way. ... It is never necessary to use newfor local variables if you have fixed sizes. ...
    (microsoft.public.vc.mfc)
  • Re: Call DLL without knowing arguments
    ... the C++ name mangling. ... knowing ahead of time, what the parameters are supposed to be. ... How can I call a DLL function filling in the arguments by code? ... The only solution I found so far is to use assembly code. ...
    (microsoft.public.windowsce.embedded.vc)