发明授权
US08276131B2 Method and system for dynamic loop transfer by populating split variables
失效
通过填充分割变量进行动态循环传输的方法和系统
- 专利标题: Method and system for dynamic loop transfer by populating split variables
- 专利标题(中): 通过填充分割变量进行动态循环传输的方法和系统
-
申请号: US11847451申请日: 2007-08-30
-
公开(公告)号: US08276131B2公开(公告)日: 2012-09-25
- 发明人: Kevin J. Langman , Zhong L. Wang
- 申请人: Kevin J. Langman , Zhong L. Wang
- 申请人地址: US NY Armonk
- 专利权人: International Business Machines Corporation
- 当前专利权人: International Business Machines Corporation
- 当前专利权人地址: US NY Armonk
- 代理机构: Cantor Colburn LLP
- 代理商 Libby Toub
- 主分类号: G06F9/45
- IPC分类号: G06F9/45
摘要:
A method that provides for dynamic loop transfer for a method having a first set of instructions being executed by an interpreter is provided. An execution stack includes slots for storing a value of each local variable known to each subroutine while the subroutine is active. The method comprises suspending execution at a point for which a current execution state can be captured from the execution stack; assigning the value in each slot of the execution stack to a corresponding slot of an array of values; scanning the first set of instructions to identify a data type for local variable that is not known in the current execution state and shares a slot in the execution stack with a local variable that is known; and generating a second set of instructions for the method coded to be initially executed to declare each local variable that is known in the current execution state and each local variable for which a data type was identified, assign each declared variable with the value assigned to the slot in the array that corresponds to the slot of the execution stack in which the value of the variable is stored during execution of the first set of instructions, and branch to a target point in the second set of instructions that corresponds to the point at which execution was suspended.
公开/授权文献
信息查询