Method and device of improving code execution performance

A code execution and performance technology, applied in program control devices, instruments, computing, etc., can solve problems such as low execution performance of weakly typed languages

Active Publication Date: 2017-12-26
BANMA ZHIXING NETWORK HONGKONG CO LTD
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present application provide a method and device for improving code execution performance, so as to solve the problem of low execution performance of existing weakly typed languages

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
  • Method and device of improving code execution performance
  • Method and device of improving code execution performance
  • Method and device of improving code execution performance

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0100] In the following description, numerous specific details are set forth in order to provide a thorough understanding of the application. However, the present application can be implemented in many other ways different from those described here, and those skilled in the art can make similar promotions without violating the connotation of the present application. Therefore, the present application is not limited by the specific implementations disclosed below.

[0101] In this application, a method and device for improving code execution performance, a method and device for generating correspondence between variable identifiers and types, and a method and device for generating source code containing type annotation statements are respectively provided. The devices are described in detail one by one in the following examples. Before describing the embodiments, the technical solution of the present application will be briefly explained.

[0102] A weakly typed language refer...

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 application discloses a method and a device of improving code execution performance, and simultaneously discloses a method and a device of generating correspondence relationships of variable identifiers and types, and a method and a device used for generating source code containing type marking statements. The method of improving the code execution performance includes: acquiring the correspondence relationships which are pre-generated for the source code and of the variable identifiers and types; and compiling the source code, which is stored in a syntax tree format, according to the correspondence relationships to generate executable code after variable type limitation. By adopting the above-mentioned method, the variable types can be limited according to the pre-generated correspondence relationships when the source code is compiled, the executable code after variable type limitation can be generated, and thus memory space occupied by the executable code can be reduced; and processes of judgment for all the possible types are reduced, thus an execution rate of the executable code is also accordingly increased, and the overall execution performance is enabled to be improved.

Description

technical field [0001] The present application relates to the technical field of software development, in particular to a method and device for improving code execution performance. The present application also relates to a method and device for generating correspondence between variable identifiers and types, and a method and device for generating source codes including type annotation sentences. Background technique [0002] Programming language (programming language) is a formal language used to define computer programs. It is commonly known as "computer language". In a strongly typed language, there are many types of variables, such as int, char, float, boolean, etc., and the type must be clearly specified when defining a variable; in a weakly typed language, the variable type is usually not specified when defining a variable, and the variable is compiled It is also impossible to accurately deduce the variable type. "Weak typing" brings flexibility and convenience to d...

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/44
CPCG06F8/4434G06F8/4441G06F8/447
Inventor 杨扬张继鹏王雷苏丽丽
Owner BANMA ZHIXING NETWORK HONGKONG 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