Methods and apparatus for handling exceptions as a part of normal program control flow are disclosed. According to one aspect of the present invention, a method for processing an exception in an object-based system includes obtaining source code that includes a code segment which is arranged to explicitly specify instructions pertaining to an exception check. The method also includes creating a final internal representation of the source code at least in part by removing a call associated with the exception check, and generating machine code associated with the final internal representation. In one embodiment, the method further includes executing the machine code. In another embodiment, creating the final internal representation of the source code includes processing the exception check as a part of a control flow associated with the source code.

Des méthodes et les appareils pour manipuler des exceptions comme partie d'écoulement normal de commande de programme sont révélés. Selon un aspect de la présente invention, une méthode pour traiter une exception dans un système objet-basé inclut obtenir le code source qui inclut un segment de code qui est arrangé pour indiquer explicitement des instructions concernant un contrôle d'exception. La méthode inclut également créer une représentation interne finale du code source au moins en partie en enlevant un appel lié au contrôle d'exception, et en produisant du code machine lié à la représentation interne finale. Dans une incorporation, la méthode autre inclut exécuter le code machine. Dans une autre incorporation, créer la représentation interne finale du code source inclut traiter le contrôle d'exception comme partie d'un écoulement de commande lié au code source.

 
Web www.patentalert.com

< (none)

< Optimization of N-base typed arithmetic expressions

> Process for processing programs, process for detecting depth of frame associated with specified method, detection method, and computer

> (none)

~ 00030