Systems and methods and implementing exception handling using exception registration records stored in stack memory
Abstract
A development system having a compiler that allows programmers and software developers to more efficiently develop compiled applications with runtime exception handling support is described. The compiler implements methods for handling of exceptions, which may occur during runtime execution of the program. In an exemplary embodiment, the system of the present invention registers exception handling information (e.g., an Exception Registration Record) with the underlying operating system, during execution of prolog code for each function (or other discrete section of code). The method is implemented so that the Exception Registration Record (ERR) resides at the bottom of the stack (or top of stack, for stack-based systems whose system stack grows upward) so that the information is positioned at one end of the stack during execution of the function. In this manner, the method allows the system of the present invention to readily and efficiently register an exception handler with the operating system, by merely executing a series of efficient machine instructions for pushing data members of the ERR onto the stack (including "pushing" the value of zero for data members which are
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 0 · Forward citations: 260.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
In a development system for compiling source listings into program code for operating a digital computer, said digital computer having a microprocessor and a system memory, said source listings comprising data and functions operative on said data, some of said data being stored in stack-based variables which are local to a particular function, an improved method for registering an exception handler with the computer, the method comprising: (a) allocating a portion of said system memory to be stack memory, for last-in, first-out storage of stack-based variables associated with functions; and
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 260 total)
References Cited — Backward Prior Art (0)
No backward patent references recorded.
Non-Patent Literature (5)
- Cameron, D., Faust, P., Lenkov, D. and Mehta, M., A Portable Implementation of C Exception Handling, Hewlett Packard California Language Laboratory, C Technical Conference, USENIX Association, pp. 225 243 Oct. 10 13, 1992.
- Cameron, D., Faust, P., Lenkov, D. and Mehta, M., A Portable Implementation of C++ Exception Handling, Hewlett-Packard California Language Laboratory, C++ Technical Conference, USENIX Association, pp. 225-243 Oct. 10-13, 1992.
- Christian, K., Power Programming: "Making Exceptions With C++." PC Magazine, Dec. 21, 1993, pp. 311-320.
- Christian, K., Power Programming: Making Exceptions With C . PC Magazine, Dec. 21, 1993, pp. 311 320.
- Ellis, M.A. and Stroustrup, B., "The Annotated C++ Reference Manual." AT&T BellLaboratories, Murray Hill, NJ, 1990, Chapter 15 Exception Handling, pp. 353-367.