[LLVMdev] Getting exceptions to work?

Nicolas Geoffray nicolas.geoffray at lip6.fr
Tue May 19 23:56:38 PDT 2009


Owen Anderson wrote:
> DWARF exceptions (aka zero-cost exceptions) are optimized to be 
> efficient when no exceptions are thrown.  They're not efficient at all 
> when exceptions are thrown, so they tend to be a poor match for 
> languages like Java where exceptions are relatively common.

Exactly. For instance, VMKit completes the exception-intensive jack 
benchmark (http://www.spec.org/jvm98/) in 60 seconds with Dwarf 
exceptions, and in 10 seconds with exception checks after each call. On 
applications with no exceptions, the exception check code does not cost 
that much (maybe 1 or 2%).

Nicolas




More information about the llvm-dev mailing list