Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Transplantation method and source to source compiler

A compiler and method source technology, applied in the computer field, can solve problems such as the inability to realize cross-platform porting of application programs

Inactive Publication Date: 2014-03-12
HUAWEI TECH CO LTD
View PDF7 Cites 33 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the purpose of the embodiments of the present invention is to provide a transplantation method and a source-to-source compiler to solve the problem that the prior art cannot realize cross-platform transplantation of application programs

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Transplantation method and source to source compiler
  • Transplantation method and source to source compiler
  • Transplantation method and source to source compiler

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0076] For the sake of reference and clarity, the technical terms, abbreviations or abbreviations used in the following text are summarized as follows:

[0077] AST: abstract syntax tree, abstract syntax tree. AST is a tree representation of the abstract grammatical structure of the source code, specifically referring to the source code of a programming language. Each node (syntax unit) on the tree represents a structure in the source code. The reason why the grammar is "abstract" is that the grammar here does not represent every detail that appears in the real grammar. For example, nested parentheses are implicit in the AST structure and are not presented in the form of nodes; while conditional jump statements like if-condition-then can be represented by nodes with two branches. Once the AST is created, some information will be added in the subsequent processing, such as the semantic analysis stage; AST is an intermediate representation in the program compilation stage, whi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a transplantation method and a source to source compiler, and aims to solve the problem in the prior art that the application program can not carry out cross-platform transplantation. The method comprises the following steps of receiving a common platform algorithm source code which is irrelevant with a platform chip framework, is compiled by aiming at an application program and adopts a common operator and a common data type; converting the common operator and the common data type in the common platform algorithm source code to obtain a target platform algorithm source code which conforms to the target platform requirement; and sending the target platform algorithm source code to a target platform complier. In the embodiment, the common platform algorithm source code is used as an intermediate code, the common operator and the common data type of the common platform algorithm source code are converted to obtain the target platform algorithm source code which conforms to the target platform requirement; the conversion of the common operator and the common data type is the conversion to the basic operation; therefore, cross-platform source to source conversion can be realized; and the problem in the prior art that cross-platform source to source conversion can not be realized is solved.

Description

technical field [0001] The invention relates to the field of computer technology, more specifically, to a transplanting method and a source-to-source compiler. Background technique [0002] When the DSP (Digital Signal Processing) platform, CPU, and GPU (Graphic Processing Unit) are upgraded (the DSP platform, CPU, and GPU are collectively referred to as the platform), the applications in the original platform often need to be transplanted accordingly so that they can Applied on the upgraded platform (which may be called the target platform). The original platform and the target platform may be different platforms, that is, there is a need for cross-platform transplantation in program transplantation. The so-called different platforms refer to platforms with different chip architectures (such as instructions, data type definitions, etc.). [0003] The above application program is a binary executable file (exe file) obtained after compiling the source code of the program. ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/45G06F9/44
CPCG06F8/51
Inventor 曾建江卓玉樟胡海亮
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products