-
公开(公告)号:KR1020120083802A
公开(公告)日:2012-07-26
申请号:KR1020110005143
申请日:2011-01-18
Applicant: 삼성전자주식회사 , 서울대학교산학협력단
CPC classification number: G06F9/4552 , G06F8/443 , G06F9/4484 , G06F2009/45587
Abstract: PURPOSE: A code relocation apparatus for a virtual machine and a method thereof are provided to remove a related jump instruction caused by relocation of a machine code stored in a code cache, thereby improving execution performance of the machine code. CONSTITUTION: A information collecting unit(201) collects code information indicating a relation of a machine code and a byte code. A code arranging unit(202) relocates the machine code stored in a code cache by using the code information. The code information includes location information, indicating a location where the machine code is stored in the cord cache on, and trace information about the byte code which is a standard of the machine code. The cord arranging unit confirms a logical execution procedure from the trace information and relocates the location of the machine code in the code cache according to the execution procedure.
Abstract translation: 目的:提供一种用于虚拟机的代码重定位装置及其方法,用于去除由存储在代码高速缓存中的机器代码的重定位而导致的相关跳转指令,从而提高机器代码的执行性能。 构成:信息收集单元(201)收集指示机器码和字节码的关系的码信息。 代码排列单元(202)通过使用代码信息来重新定位存储在代码高速缓存器中的机器代码。 代码信息包括指示机器代码存储在电线高速缓存中的位置的位置信息,以及关于作为机器代码标准的字节码的跟踪信息。 绳索排列单元从跟踪信息确认逻辑执行过程,并根据执行过程将代码高速缓存中的机器代码的位置重新定位。
-
公开(公告)号:KR101024707B1
公开(公告)日:2011-03-25
申请号:KR1020100013645
申请日:2010-02-12
Applicant: 서울대학교산학협력단
CPC classification number: G06F8/447 , G06F9/30196 , G06F9/4491 , G06F9/4494 , G06F9/453 , G06F17/20
Abstract: PURPOSE: An interpreter call method for a byte code-to-c ahead-of-time compiler is provided to perform rapid function calls like a standard C function call. CONSTITUTION: While performing AOTC(Ahead-Of-Time Compiling), a JAVA method is converted into a C function and includes an interpreter call code. If a callee interpreter is called in the AOTC C function, a call and return about the callee is performed using an interpreter call code. If a AOTC callee C function is called in the AOTC callee C function, the callee C function is called and returned according to the standard C call.
Abstract translation: 目的:提供用于字节代码到时间的编译器的解释器调用方法来执行诸如标准C函数调用之类的快速函数调用。 规定:在执行AOTC(即时编译)时,将JAVA方法转换为C函数,并包含一个解释器调用代码。 如果在AOTC C函数中调用被调用的解释器,则使用解释器调用代码执行关于被调用者的调用和返回。 如果在AOTC被调用者C函数中调用AOTC被调用者C函数,则根据标准C调用调用被调用者C函数并返回。
-
公开(公告)号:KR1020120083803A
公开(公告)日:2012-07-26
申请号:KR1020110005144
申请日:2011-01-18
Applicant: 삼성전자주식회사 , 서울대학교산학협력단
IPC: G06F9/44
CPC classification number: G06F9/4552 , G06F8/40 , G06F8/443 , G06F9/4555
Abstract: PURPOSE: An additional code generating apparatus for a VM(Virtual Machine) and a method thereof are provided to increase a area able to accelerate through a JITC(Just In Time Compiler) and improve performance of the VM by increasing generation of a machine code. CONSTITUTION: An information collecting unit(201) collects trace information indicating logic flow which a byte code is performed. If the byte code is not compiled, a code decision unit(202) decides a byte code section to compile into a machine code by using the trace information. A compiler compiles the byte code section into the machine code. The compiler and an interpreter performing the byte code are operated on separate cores. The information collecting unit searches for a route of the byte code performed on the interpreter and collects trace information.
Abstract translation: 目的:提供用于VM(虚拟机)的附加代码生成装置及其方法,以通过增加机器代码的生成来增加能够通过JITC(即时编译器)加速的区域并提高VM的性能。 构成:信息收集单元(201)收集指示执行字节代码的逻辑流的跟踪信息。 如果字节码未被编译,则代码判定单元(202)通过使用跟踪信息来决定字节代码段以编译成机器代码。 编译器将字节码部分编译成机器代码。 执行字节码的编译器和解释器在独立的内核上运行。 信息收集单元搜索在解释器上执行的字节码的路由并收集跟踪信息。
-
4.
公开(公告)号:KR101064741B1
公开(公告)日:2011-09-15
申请号:KR1020100013631
申请日:2010-02-12
Applicant: 서울대학교산학협력단
Abstract: 본 발명은 핫 패스 기반의 자바스크립트 동적 컴파일을 위한 생성 코드 재활용 방법에 관한 것으로서, 보다 구체적으로는 (a) 동적 컴파일 수행 중, 재배치에 필요한 재배치 정보를 수집하는 단계; (b) 상기 단계 (a)에서 수집된 재배치 정보를, 동적 컴파일 수행 후 생성된 코드와 함께 파일 시스템에 저장하는 단계; (c) 자바스크립트 엔진이 재시작 된 경우, 동적 컴파일을 수행하기 전에 상기 파일 시스템에서 동적 컴파일 대상 구역에 대한 코드의 존재 여부를 확인하는 단계; 및 (d) 상기 단계 (c)에서 코드가 존재하는 것으로 확인되는 경우, 상기 파일 시스템으로부터 상기 코드와 상기 재배치 정보를 읽어 들여 읽어 들인 상기 코드를 상기 재배치 정보를 이용하여 재배치한 후 수행하는 단계를 포함하는 것을 그 구성상의 특징으로 한다.
본 발명에서 제안하고 있는 핫 패스 기반의 자바스크립트 동적 컴파일을 위한 생성 코드 재활용 방법에 따르면, 동적 컴파일 수행으로 생성된 코드와 관련 재배치 정보를 파일 시스템에 저장해 둠으로써, 자바스크립트 엔진이 재시작된 경우 해당 코드에 대한 동적 컴파일을 수행하는 대신에 파일 시스템으로부터 해당 코드와 관련 재배치 정보를 읽어 들여 재배치 과정만 거친 후 해당 코드를 수행할 수 있다. 그 결과, 컴파일 과정 및 컴파일을 위한 자료 수집 과정 없이 빠르게 생성된 코드를 재활용할 수 있다.Abstract translation: 本发明涉及用于动态代码编译的基于热路径的JavaScript动态重新编译方法,并且更具体地涉及(a)收集动态编译期间重定位所需的重定位信息; (b)将步骤(a)中收集的重定位信息与动态编译后生成的代码一起存储在文件系统中; (c)如果JavaScript引擎重新启动,则在执行动态编译之前检查文件系统中是否存在动态编译对象区域的代码; 并且(d)如果在步骤(c)中发现代码存在,则从文件系统读取代码和重定位信息,使用重定位信息重新排列所读取的代码,并执行 并包括其构成特征。
-
5.
公开(公告)号:KR1020110093522A
公开(公告)日:2011-08-18
申请号:KR1020100013631
申请日:2010-02-12
Applicant: 서울대학교산학협력단
CPC classification number: G06F9/44521 , G06F8/31 , G06F8/311 , G06F8/4441 , G06F9/45529 , G06F9/45558
Abstract: PURPOSE: A method for recycling a generation code for Java script dynamic compile based on a hot pass is provided to recycle a generated code without a compile process and a material collecting process by storing a code and rearrangement information which is generated with a dynamic compile to a file system. CONSTITUTION: Arrangement information which is necessary for rearrangement is collected among the dynamic compile(S100). The rearrangement information is stored in a file system with a code which is generated after the dynamic compile(S200). If a java script engine is restarted, a code about dynamic compile target area is checked in the file system before the dynamic compile(S300). If the code exists, the code is performed by being rearranged based on the rearrangement information(S400).
Abstract translation: 目的:提供一种循环使用Java脚本动态编译的代码的方法,用于通过将通过动态编译生成的代码和重新排列信息存储在一起,以循环生成的代码而无需编译过程和材料收集过程 文件系统 规定:在动态编译中收集重排所需的安排信息(S100)。 重排信息被存储在具有在动态编译之后生成的代码的文件系统中(S200)。 如果java脚本引擎重新启动,则在动态编译之前,在文件系统中检查有关动态编译目标区域的代码(S300)。 如果代码存在,则通过基于重排信息进行重新排列来执行代码(S400)。
-
-
-
-