Invention Grant
US08627281B2 Method, computer program and computer system for converting source code written in dynamically typed language into target code written in statically typed language and executing target code
有权
方法,计算机程序和计算机系统,用于将以动态类型语言编写的源代码转换为以静态类型语言编写的目标代码,并执行目标代码
- Patent Title: Method, computer program and computer system for converting source code written in dynamically typed language into target code written in statically typed language and executing target code
- Patent Title (中): 方法,计算机程序和计算机系统,用于将以动态类型语言编写的源代码转换为以静态类型语言编写的目标代码,并执行目标代码
-
Application No.: US12954643Application Date: 2010-11-25
-
Publication No.: US08627281B2Publication Date: 2014-01-07
- Inventor: Michiaki Tatsubori
- Applicant: Michiaki Tatsubori
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Otterstedt, Ellenbogen & Kammer, LLP
- Agent Gail H. Zarick
- Priority: JP2009-270506 20091127
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F9/45

Abstract:
The present invention provides a method for converting source code written in a dynamically typed language into target code written in a statically typed language. The method includes the step of generating in a storage device the target code from the source code, the step of generating the target code including storing in a buffer a signature of a function/method used by a caller in the source code. In this step, generation of an interface class is delayed to a time point immediately before execution of a part of the target code corresponding to the function/method call by the caller, the interface class being needed to generate the caller and serving as an interface in the statically typed language. The method also includes the step of generating in the storage device a consolidated interface class for all signatures stored in the buffer, and loading the generated consolidated interface class from the storage device. In this step, all the signatures in the buffer are deleted upon generation of the consolidated interface class.
Public/Granted literature
Information query