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 有权
方法,计算机程序和计算机系统,用于将以动态类型语言编写的源代码转换为以静态类型语言编写的目标代码,并执行目标代码

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
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.
Information query
Patent Agency Ranking
0/0