发明名称 TRANSPLANTING METHOD AND SOURCE-TO-SOURCE COMPILER
摘要 Embodiments of the present invention disclose a transplantation method and a source-to-source compiler, which are used to solve a problem that cross-platform transplantation of an application cannot be implemented in the prior art. The method includes: receiving common platform algorithm source code that is unrelated to a platform chip architecture, is written for an application program, and uses a general operator and a general data type; performing conversion on the general operator and the general data type in the common platform algorithm source code to obtain target platform algorithm source code that meets a target platform operation requirement; and sending the target platform algorithm source code to a target platform compiler. In the embodiments, the common platform algorithm source code is used as intermediate code; the general operator and the general data type of the common platform algorithm source code are converted to obtain the target platform algorithm source code that meets the target platform operation requirement; and conversion of the general operator and the general data type is conversion of a basic operation. Therefore, cross-platform source-to-source conversion can be implemented, and the problem that cross-platform source-to-source conversion cannot be implemented in the prior art is solved.
申请公布号 EP2894561(A4) 申请公布日期 2015.08.26
申请号 EP20140789502 申请日期 2014.04.25
申请人 HUAWEI TECHNOLOGIES CO., LTD. 发明人 CENG, JIANJIANG;ZHUO, YUZHANG;HU, HAILIANG
分类号 G06F9/44;G06F9/45 主分类号 G06F9/44
代理机构 代理人
主权项
地址