Code translation method, device and equipment

A technology of codes and rules, applied in the field of application development, can solve problems such as high migration threshold, long migration cycle, and error-prone

Pending Publication Date: 2022-04-12
HUAWEI TECH CO LTD
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] This application provides a code compilation method, which uses pre-created translation rules to realize automatic code cross-platform translation, solves the prob

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
  • Code translation method, device and equipment
  • Code translation method, device and equipment
  • Code translation method, device and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0079] The terms "first" and "second" in the embodiments of the present application are used for description purposes only, and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features.

[0080] First, some technical terms involved in the embodiments of the present application are introduced.

[0081] A programming language is a formal language used to define computer programs, so a programming language is also called a computer language. When developing an application, the developer specifically implements it by writing a code file in the above-mentioned programming language.

[0082] Programming languages ​​can be divided into platform-dependent languages ​​and non-platform-dependent languages ​​according to whether they depend on the platform. Wherein, a platform-dependent langua...

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

In order to solve the problems that code cross-platform translation efficiency is low, requirements for translators are high, and translation cost is increased, the invention provides a code translation method which comprises the steps that a first code is obtained, the first code is written based on a platform-dependent language of a source platform, then at least one translation rule matched with the first code is determined, and the first code is translated according to the at least one translation rule. The translation rule is used for directly translating a code of one platform into a code of another platform, and then translating the first code by using the translation rule to obtain a second code suitable for the target platform. According to the method, automatic cross-platform translation of the codes is realized through the translation rule, and the translation efficiency and the translation precision are improved.

Description

technical field [0001] The present application relates to the technical field of application development, and in particular to a code translation method, device, device, and computer-readable storage medium. Background technique [0002] An application is an executable computer program written in a computer language and running on a hardware platform. Wherein, the hardware platform refers to a platform for data processing according to an instruction set. The instruction set adopted by the hardware platform is different, and the hardware platform is different. For example, if two hardware platforms respectively adopt different complex instruction sets under the x86 architecture, the two hardware platforms are different. For another example, two hardware platforms respectively adopt instruction sets under different architectures, for example, respectively adopt complex instruction sets under x86 architecture and reduced instruction sets under advanced RISC machines (ARM) arc...

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
IPC IPC(8): G06F8/51G06F8/41
CPCG06F8/52G06F8/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
Try Eureka
PatSnap group products