发明名称 Dynamic incremental compiler and method
摘要 A virtual machine executive (VME) system operating on a target platform that includes a virtual machine monitor (VMM) and a dynamic compiler, in particular, a trace compiler (TC). System embodiments include a virtual machine monitor configured to record a trace corresponding to a selected cycle, and configured to transform the trace into a representation of a trace tree; and a trace compiler cooperating with the virtual machine monitor to compile the representation of the trace tree into a compiled code segment of native machine code executable on the target platform, in which the trace is a linear instruction sequence traversing at least a portion of a method, a loop, or a branching node.
申请公布号 US8769511(B2) 申请公布日期 2014.07.01
申请号 US200711676198 申请日期 2007.02.16
申请人 The Regents of the University of California 发明人 Gal Andreas Imre;Franz Michael
分类号 G06F9/45 主分类号 G06F9/45
代理机构 Klein, O'Neill & Singh, LLP 代理人 Klein, O'Neill & Singh, LLP
主权项 1. A target platform including a CPU comprising: a virtual machine monitor configured to monitor execution frequency on the CPU of an anchor node targeted by a back branching control node and to record next executed virtual machine code instructions corresponding to a linear instruction sequence of a selected cycle when execution of the anchor node exceeds a predetermined frequency, the linear instruction sequence traversing a portion of a loop from the anchor node to the back branching control node targeting the anchor node, the loop including a method call and at least one conditional branching instruction between the anchor node and the back branching control node targeting the anchor node, and the linear instruction sequence including only an executed portion of a method invoked using the method call; a compiler, cooperating with the virtual machine monitor, configured to compile the virtual machine code instructions for the next executed virtual machine code instructions corresponding to the linear instruction sequence of the selected cycle into a compiled code segment of native machine code executable on the target platform, and without compiling unexecuted portions of the method invoked using the method call; and wherein the virtual machine monitor is further configured to cause execution of the compiled code segment of native machine code on the CPU in lieu of further execution of the virtual machine code corresponding to the linear instruction sequence of the selected cycle.
地址 Oakland CA US
您可能感兴趣的专利