Invention Grant
US08418160B2 Apparatus and method to selectively remove memoizing functions from program code
失效
从程序代码中选择性地去除记忆功能的装置和方法
- Patent Title: Apparatus and method to selectively remove memoizing functions from program code
- Patent Title (中): 从程序代码中选择性地去除记忆功能的装置和方法
-
Application No.: US12903672Application Date: 2010-10-13
-
Publication No.: US08418160B2Publication Date: 2013-04-09
- Inventor: Patrick R. Doyle
- Applicant: Patrick R. Doyle
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Nelson and Nelson
- Agent Daniel P. Nelson; Alexis V. Nelson
- Main IPC: G06F9/45
- IPC: G06F9/45

Abstract:
A method to selectively remove memoizing functions from computer program code includes initially locating a memoizing function call in the program code. The method then replaces the memoizing function call with a simple object allocation. Using escape analysis, the method determines whether the replacement is legal. If the replacement is not legal, the method removes the simple object allocation and reinserts the original memoizing function call in its place. If the replacement is legal, the method retains the simple object allocation in the program code. If desired, certain compiler optimizations, such as stack allocation and scalarization, may then be performed on the simple object allocation. A corresponding computer program product and apparatus are also disclosed.
Public/Granted literature
- US20120096448A1 APPARATUS AND METHOD TO SELECTIVELY REMOVE MEMOIZING FUNCTIONS FROM PROGRAM CODE Public/Granted day:2012-04-19
Information query