×

PROGRAM, METHOD, AND SYSTEM FOR CODE CONVERSION

  • US 20110321018A1
  • Filed: 06/15/2011
  • Published: 12/29/2011
  • Est. Priority Date: 06/29/2010
  • Status: Abandoned Application
First Claim
Patent Images

1. An article of manufacture tangibly embodying computer readable instructions which, when implemented, cause a computer to carry out the steps of a method of converting a code so that an executable bytecode generated by a processor for a first programming language corresponds to source code written in a second programming language, the steps of the method comprising:

  • sequentially reading instructions in the executable bytecode generated by the processor for the first programming language;

    when a first code is found which does not directly correspond to any language element of the second programming language and which is intended to execute an instruction related to a stack operation, replacing the first found code with any combination of an expression for assignment to a temporary variable, a call for a dummy method which only returns part of an argument as-is, and an expression for reading the temporary variable; and

    when a second code is found which does not directly correspond to any language element of the second programming language and which is intended to call an original method which leaves a value thereof on a stack and has no return value, generating a new method which has an additional first argument and an original argument, wherein the new method executes the original method call, and returns the additional first argument as-is, and replacing the call for the original method having no return value with a call for the new method.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×