[fpc-pascal] get_caller_frame

Ryan Joseph genericptr at gmail.com
Wed Nov 20 23:52:07 CET 2019



> On Nov 20, 2019, at 1:56 AM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> It returns the address of the caller's frame pointer. See also https://www.freepascal.org/docs-html/rtl/system/get_caller_frame.html
> 
> It's mainly used in context of raising exceptions with the help of a second function. See here: https://freepascal.org/docs-html/current/ref/refse112.html#x227-24900017.1
> 

I guess I don't know what a frame pointer is. I thought it meant a pointer to the current stack frame and so I was curious if the RTL could include a way to copy the stack with the pointer and restore it later. Is that not how it works?

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list