<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Ryan Joseph via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am Fr., 22. Nov. 2019, 01:51:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On Nov 21, 2019, at 1:41 AM, Sven Barth via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank" rel="noreferrer">fpc-pascal@lists.freepascal.org</a>> wrote:<br>
> <br>
> No. On x86 it's essentially the content of the EBP/RBP register which is (assuming no optimizations are done) essentially the ESP/RSP register of the calling function. This is only used by the exception handling to have the exception appear to be raised somewhere else.<br>
<br>
So what's missing then to be able make saving a stack frame to the heap and then restoring it?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">That the compiler doesn't throw a wrench in your plans and decides to use EBP/RBP for its own purposes due to optimization? Not to mention that on other platforms this will likely be completely different? </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>