CSC448: Exceptions: Implementation Strategies I [9/12] Previous pageContentsNext page

Exception handling complicates the runtime system:

A simple strategy is to maintain a stack of exception handlers:

This strategy has significant runtime costs, because we must maintain the stack of exception handlers as the normal flow of execution passes through them. Thus, we are constantly paying for the rare case when an exception is thrown.

Previous pageContentsNext page