Search International and National Patent Collections

1. (WO2017035748) CODE COMPILING METHOD AND CODE COMPLIER

Pub. No.:    WO/2017/035748    International Application No.:    PCT/CN2015/088637
Publication Date: Fri Mar 10 00:59:59 CET 2017 International Filing Date: Tue Sep 01 01:59:59 CEST 2015
IPC: G06F 9/45
Applicants: HUAWEI TECHNOLOGIES CO., LTD.
华为技术有限公司
Inventors: ZENG, Dejun
曾德军
WANG, Jihui
王继辉
NING, Hong
宁洪
Title: CODE COMPILING METHOD AND CODE COMPLIER
Abstract:
A code compiling method and a code complier, the method comprising: first acquiring source code used for describing a matrix operation and a matrix participating in the matrix operation (201); acquiring configuration information of a digital signal processor running target code (202); then generating, according to the source code and the configuration information of the digital signal processor, target code run on the digital signal processor, the target code comprising a digital signal processor instruction that is used for performing the matrix operation on the matrix (203). On one hand, the source code is user-oriented high-level programming language program code and can be independent of various digital signal processors. On the other hand, when the source code is compiled into target code, the configuration information of the digital signal processor running the target code is used as a basis for compiling. Whereby, target code suitable for different digital signal processors can be obtained on the basis of the same source code, and a universal code compiling process is implemented, thereby improving the universality and efficiency of code compiling.