发明名称 Transplantation Method and Source-to-Source Compiler
摘要 A transplantation method and a source-to-source compiler are provided. 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 target platform algorithm source code that meets the target platform operation requirement can be obtained; and 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.
申请公布号 US2015154011(A1) 申请公布日期 2015.06.04
申请号 US201414557734 申请日期 2014.12.02
申请人 Huawei Technologies Co., Ltd. 发明人 Ceng Jianjiang;Zhuo Yuzhang;Hu Hailiang
分类号 G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项 1. A cross-platform transplantation method for an application program, comprising: 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 a data type requirement; and sending the target platform algorithm source code to a target platform compiler such that the target platform compiler performs compiling on the target platform algorithm source code to obtain an application that can run on a target platform.
地址 Shenzhen CN