Unlock instant, AI-driven research and patent intelligence for your innovation.

Byte code instruction set simplification method and system

An instruction set and bytecode technology, which is applied in electrical digital data processing, program control design, instruments, etc., can solve problems such as large storage space and general execution performance, and achieve the effect of reducing size

Pending Publication Date: 2021-04-09
BEIJING WATCH DATA SYST
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The bytecode generated by using the existing Dalvik virtual machine instruction set occupies a large storage space and has good execution performance, while the bytecode generated by using the Java Card virtual machine instruction set occupies a small storage space, but the execution performance is average. Therefore, in order to meet higher performance requirements, it is urgent to design a method to simplify instructions, which can save storage space and improve execution performance, and is applicable to the above two types of instruction sets

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
  • Byte code instruction set simplification method and system
  • Byte code instruction set simplification method and system
  • Byte code instruction set simplification method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045]The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0046] Glossary

[0047] Constant pool: The virtual machine instruction set accesses symbolic references stored in the constant pool through the constant pool index, including classes (interfaces), static fields, static methods, instance fields, virtual methods, and super methods.

[0048] In the package: the bytecode generation program converts in units of a Java package, and the package in the present invention refers to the Java package to be converted, and the Java package imports (import) the library package.

[0049] Library package: A Java package that can be imported by other Java packages. The Java Card API is implemented as a Java library and can be referenced by classes in other packages. A java class defined in a package (inside the package) can call methods of classes provided in the library package.

[0050] The method ...

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 invention discloses a byte code instruction set simplification method and system, and the method comprises the following steps: S100, dividing a constant pool into a plurality of corresponding sub-constant pools based on different reference types; S200, based on the number of references of each reference type, counting the occurrence frequency of the instruction corresponding to each reference type, and putting the instruction into the corresponding sub-constant pool according to a sequence from high to low, the constant pool index of the instruction corresponding to each reference type being the index of the sub-constant pool corresponding to each reference type; and S300, generating a corresponding single-byte constant pool index instruction based on the generation condition of the instruction corresponding to each reference type. According to the invention, the byte code of the virtual machine can be simplified, the storage space of the byte code is reduced, and the execution performance of the byte code is improved.

Description

technical field [0001] The invention relates to a virtual machine instruction set, in particular to a method and system for simplifying a bytecode instruction set. Background technique [0002] A virtual machine is an abstract computer generated by a software application program or instruction sequence executed by a processor. The virtual machine can execute the instruction set supported by the virtual machine. The instruction set has two types of instruction sets based on operand stack and register. Java Card The instruction set of the virtual machine is based on the operand stack, and the instruction set of the Dalvik virtual machine is based on registers. The bytecode generated by using the existing Dalvik virtual machine instruction set occupies a large storage space and has good execution performance, while the bytecode generated by using the Java Card virtual machine instruction set occupies a small storage space, but the execution performance is average. Therefore, i...

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/455
CPCG06F9/45504
Inventor 石玉平郑江东王幼君
Owner BEIJING WATCH DATA SYST
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More