发明名称 Method and apparatus for generating platform-standard object files containing machine-independent code
摘要 A method and apparatus for generating a platform-standard object file containing machine-independent abstract code. Source code which defines a procedure is convened into abstract code which makes no assumptions about the platform on which the procedure will be executed. An abstract code platform-standard object file is generated based on the abstract code. The abstract code platform-standard object file includes a list of definitions of any global variables defined in the abstract code, a list of symbol references indicative of any external variables or external procedures referenced in the abstract code, a sequence of machine instructions for calling an execution routine when a client calls the procedure, and the abstract code which defines the procedure. The abstract code is preferably compressed before it is stored in the abstract code platform-standard object file. When a program including the abstract code platform-standard object file is executed, it is dynamically linked to the execution routine. When the procedure is called, the execution routine is invoked. The execution routine executes the procedure by interpreting the abstract code or generating machine-code responsive to the abstract code. The execution routine may be an execution control unit which selects between various execution techniques based on runtime factors, such as the frequency with which the procedure is called.
申请公布号 US5590331(A) 申请公布日期 1996.12.31
申请号 US19940363743 申请日期 1994.12.23
申请人 SUN MICROSYSTEMS, INC. 发明人 LEWIS, BRIAN T.;GOLDSTEIN, THEODORE C.
分类号 G06F9/06;G06F9/445;G06F9/45;(IPC1-7):G06F9/45 主分类号 G06F9/06
代理机构 代理人
主权项
地址