Code generation method and device

CN118519638APending Publication Date: 2024-08-20ALIBABA (CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410558109.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2019-04-25
Publication Date
2024-08-20

AI Technical Summary

Technical Problem

In the existing technology, when JavaScript code is converted, other programming languages ​​such as C language, C++ language, etc. are converted into JavaScript code, resulting in poor performance of the compiled project and placing high requirements on technical personnel's code conversion capabilities.

Method used

By obtaining the intermediate code to be language converted, detect and mark the call points of safe point calls and exception handling, and generate the marked intermediate code to facilitate subsequent adaptive processing and improve compatibility with target objects (such as V8 engine).

Benefits of technology

It improves the overall performance of the compilation project, reduces the code conversion ability requirements of technical personnel, and makes the generated target code better compatible with the target object.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118519638A_ABST
    Figure CN118519638A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a code generation method and device.The code generation method comprises the steps that a first intermediate code and a second intermediate code to be subjected to language conversion are obtained, and the second intermediate code is generated by detecting the first intermediate code and obtaining and marking a calling point of the first intermediate code; outputting the second intermediate code to a compiler, and pre-outputting a local code and metadata of the pre-output local code through the compiler; and performing code combination according to the pre-output local code and the metadata. Through the embodiment of the invention, not only is the overall performance of the compiling project improved, but also the requirement on the code conversion capability of technicians is greatly reduced.
Need to check novelty before this filing date? Find Prior Art