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 convers...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | 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. |
---|