Methods and apparatus for optimizing the operating speed and size of a computer program
Abstract
Apparatus and methods for optimizing an operating speed and size of a computer program are disclosed. In an example, an apparatus includes an execution module to run a computer program, an exception detector to detect throws to an exception handler and to detect locations from which the throws occur, a memory to store data developed by the exception detector and a code adjuster to at least one of inline and fold the exception handler with respect to at least one of the detected locations.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 20 · Forward citations: 6.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method of optimizing an operating speed and size of a computer program comprising: executing the computer program for a period of time; recording a location from which an exception handling routine is thrown; detecting a frequency with which the exception handling routine is thrown from the recorded location; comparing the detected frequency with which the exception handling routine is thrown from the recorded location with a predetermined threshold; if the frequency exceeds the predetermined threshold, performing at least one of folding and inlining of the exception handling routine; and wh
- Claim 2Depends on #1
A method defined in claim 1
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (6 of 6 total)
References Cited — Backward Prior Art (20)
Non-Patent Literature (4)
- Chang et al, "Visualization of exception propagation for Java using static analyis", IEEE SCAM, pp. 173-182, 2002.
- Jiang et al, "An analysis approach for testing exception handling programs", ACM SIGPLAN, vol. 42, 4, pp. 3-8, 2007.
- Lee et al, "Efficient Java exception handling in Just in time compilation", ACM java, pp. 1-8, 2000.
- Ogasawara et al, "A study of exception handling and its dynamic optimization in Java", ACM OOPSLA, pp. 83-95, 2001.