There is only one entry point into the program. The others like interrupt vectors and exceptions are re-entry points. The main entry stack frame would still be there for all these re-entries, and only gets cleaned up on program exit, by which time all the interrupt and exception vectors must be cancelled if you don't want a horrible crash :-)
Keean. On 11 February 2015 at 18:47, Jonathan S. Shapiro <[email protected]> wrote: > On Wednesday, February 11, 2015, Keean Schupke <[email protected]> wrote: > >> Yes, I am not really considering the top-level, I was thinking more of >> this: >> >> def main = >> let add_x x = lambda y = x + 1 in >> let add_one = add_x 1 in ... >> >> I would consider the whole top-level and program entry point as a closure >> to be instantiated in its callers stack. >> > > Would that be the main entry point, the interrupt vector entry point, the > page fault entry point, or the voluntary yield entry point? :-) > > > _______________________________________________ > bitc-dev mailing list > [email protected] > http://www.coyotos.org/mailman/listinfo/bitc-dev > >
_______________________________________________ bitc-dev mailing list [email protected] http://www.coyotos.org/mailman/listinfo/bitc-dev
