Supercharge Your Innovation With Domain-Expert AI Agents!

Instruction simplification method and system for byte code instruction set

An instruction set and bytecode technology, applied in electrical digital data processing, instruments, computing, etc., can solve problems such as low execution efficiency, and achieve the effect of improving execution performance and reducing length.

Pending Publication Date: 2022-05-03
BEIJING WATCH DATA SYST
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Compared with the register-based instruction set, the instruction set based on the operand stack adopts the stack frame structure. The method call process involves stacking and popping, and the bytecode execution process also involves the stacking and popping of the operand stack. , although the RAM overhead is small, but the execution efficiency is low

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0016] Such as figure 1 As shown, a instruction simplification method of a bytecode instruction set is applied to a user terminal, and the instruction simplification method of the bytecode instruction set is implemented by the application software installed in the user terminal For execution, the user terminal is a terminal device used to execute the instruction simplification method of the bytecode instruction set to convert the initial code instruction, such as a desktop computer, a notebook computer, a tablet computer or a mobile phone, etc., including the following steps:

[0017] S110. Perform optimization processing on the instruction assigning a constant to a register and the instruction using the register as an operand to obtain a reduced instruction directly using a constant operand, or directly generate a reduced instruction using a c...

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 relates to an instruction simplification method and system for a bytecode instruction set. According to the method, an instruction for assigning a constant to a register in an initial instruction and an instruction using the register as an operand can be optimized into an instruction with a constant operand, or the instruction with the constant operand is directly generated; the method comprises the following steps: converting an instruction for accessing an instance domain of a current instance or generating a special instruction for accessing the instance domain of the current instance, encoding a sub-constant pool index operand in the instruction to an operation code adjacent to the instruction, determining the type of a sub-constant pool through the operation code, separating a variable-length operand in a variable-length instruction from the instruction code, according to the method, a pseudo instruction for static field initialization is generated, the pseudo instruction can replace a traditional static field component, an instruction for repeatedly using a register is optimized into an instruction for multiplexing the register, and a group of instructions which have similar functions and are not commonly used are compounded into one instruction. By adopting the method provided by the invention, the length of the byte code can be reduced, and the execution performance of the byte code is improved.

Description

technical field [0001] The invention belongs to the technical field of instruction set simplification, and in particular relates to a method and system for instruction simplification of a bytecode instruction set. Background technique [0002] A virtual machine is an abstract computer generated by a software application or instruction sequence executed by a processor. The virtual machine can execute the instruction set supported by the virtual machine. There are two types of instruction sets based on the operand stack and based on the register. Compared with the register-based instruction set, the instruction set based on the operand stack adopts the stack frame structure. The method call process involves stacking and popping, and the bytecode execution process also involves the stacking and popping of the operand stack. , although the RAM overhead is small, but the execution efficiency is low. Contents of the invention [0003] Aiming at the defects existing in the prior...

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/30
CPCG06F9/30098G06F9/30025
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