Nullstone Logo

COMPANY
Home
Contacts
Customers
Testimonials

PRODUCTS
Overview
NULLSTONE for C
NULLSTONE for Java
Technical Overview

SUPPORT
Release Notes
Download
PGP Information
Service Report
Write Us

INFORMATION
Performance Results
Glossary of Terms

RELATED LINKS
Compiler Connection
Compiler Jobs

Previous Up Next
Try/Catch Block Optimization

A try block which can never throw an Exception should be as fast as a normal block.

Example:

In the code fragement below, the statements inside the try block will never throw an Exception. The try block is unnecessary and should add no overhead.

            try {
    	a = i(int) 1;
            } catch (Exception e) 
                    //...
            }
    

Below is the code fragment after Try/Catch Block Optimization.

    	a = int 1;
    

© 1990-2012 Nullstone Corporation. All Rights Reserved.