Patent ID: 6438745
Filing Date: 2002-08-20
Classification: G06F

Abstract:
A program conversion apparatus for converting a first object program that runs on a first platform into a second object program that runs on the second platform, the first object program including source library call instructions that call source libraries, the source libraries being external modules that are designed to run on the first platform, the program conversion apparatus comprising:a library correspondence information storing means for holding library correspondence information that associates the source libraries with target libraries and includes argument correspondence information, wherein the target libraries are external modules each of which is capable of running on the second platform and has the same feature as one of the source libraries, and the argument correspondence information shows a correlation between conditions required by source arguments and conditions required by target arguments, the source arguments being arguments of the source libraries and the target arguments being arguments of the target libraries; a library call instruction detecting means for detecting a source library call instruction included in the first object program; an instruction converting means for converting the detected source library call instruction into a target library call instruction by referring to the library correspondence information, wherein the target library call instruction is to be included in the second object program and calls a target library corresponding to a source library called by the detected source library call instruction; an argument setting instruction detecting means for detecting an argument setting instruction included in the first object program, the argument setting instruction setting a value in a source argument of the called source library; and an argument setting instruction converting means for converting the detected argument setting instruction into a target argument setting instruction by referring to the argument correspondence information, wherein the target argument setting instruction is to be included in the second object program and sets the value set in the source argument of the called source library as a target argument of the corresponding target library to meet a condition required by the target argument of the corresponding target library.