|
From: | Stefan Monnier |
Subject: | Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter |
Date: | Tue, 23 Oct 2007 21:09:44 -0400 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) |
> Anyone, care to show how this translates into assembly after we deal > thoroughly with this in the context of C ? I believe that one way to look at setjmp/longjmp in C is that setjmp saves a copy of the registers (most importantly PC and SP) and longjmp uses that copy to jump back to the corresponding point in the program (and stack activation). Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |