[DGD] error context frames versus stack frames

Felix A. Croes felix at dworkin.nl
Thu Apr 13 19:19:28 CEST 2017


Carter Cheng <cartercheng at gmail.com> wrote:

> I am curious what error context frames in dgd are for vs. stack frames in a
> normal compiler. I am somewhat curious about this error handling code since
> it is probably important to how I map this into llvm's exception framework.
> What does an error context represent and what does ec_pop and ec_push
> effectively do?

These are exception handling contexts.  They are completely distinct
from stack frames.  LLVM must use them too, one way or another.  The
push & pop functions create and destroy exception handling contexts
on the exception handling stack.

Regards,
Felix Croes



More information about the DGD mailing list