As described herein, an intermediate representation of a source code file
may be used to explicitly express exception handling control flow prior
to generating object code for the source code. As further described
herein, a single uniform set of instructions of the intermediate
representation may be used for expressing multiple different exception
handling mechanisms related to multiple different programming languages.
The intermediate form of the exception handling instructions may be
generated by translating an intermediate language representation of the
source code file. Representations of the source code in multiple
different intermediate languages may be translated to a single uniform
set of instructions of the intermediate representation. The intermediate
form of the exception handling instructions may then be used by software
development tools for such tasks as code generation, code optimization,
code analysis etc. Thus, the same methods for code optimizations,
analysis and generation may be used for intermediate representations of
multiple different languages.