Displaying 2 results from an estimated 2 matches for "inso".
Did you mean:
info
2008 May 04
0
[LLVMdev] nonlocal go to -- how?
...en
we build a Label object LL to represent it.
foo()
{
Label LL;
LL.level = ≪
LL.target = &L;
...
...
L:
}
Someplace else, syntactically nested within foo, there's another function
bar, which contains a goto L.
This goto gets translated into something like:
Translate the goto inso something like
throw appropriate_static_link->LL;
where appropriate static link is whatever is needed to access the proper
variable in the enclosing scope.
Around every call *from* any function that contains a Label, we have code
like:
try(
the_call
}
catch(Label e)
{ if(e.level...
2008 May 04
7
[LLVMdev] nonlocal go to -- how?
The languages I'm faced with compiling in the near future have nonlocal
go to statements and nested procedures.
A procedure gets implemented as a structure containing its entry point
and an environment pointer. It is easy enough to call its entry point
and pass the environment pointer as an extra argument (rather like the
pointer to this or self in object-oriented code). It's no