Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for improving execution efficiency of static field access command

An instruction execution and static technology, which is applied in the field of Java smart cards, can solve the problems of reducing the execution efficiency of static domain access instructions, and achieve the effects of improving performance, improving execution efficiency, and increasing operating speed

Inactive Publication Date:
View PDF3 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] The shortcomings of the traditional implementation method of static domain access instructions are: the traditional method of accessing static domain needs to obtain the physical address of the static domain through parsing. execution efficiency

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 for improving execution efficiency of static field access command
  • Method for improving execution efficiency of static field access command
  • Method for improving execution efficiency of static field access command

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The present invention will be described in more detail below by means of the accompanying drawings.

[0023] Such as figure 1 shown. When downloading the constant pool component of the CAP file, the parsing process of the physical address of the static domain can be divided into two cases to illustrate:

[0024] (1) If the static domain access instruction accesses the static domain in the package, the physical address of the static domain is obtained according to the offset in the corresponding entry of the constant pool and the storage address of the static domain image of the current package, and stored in the corresponding constant pool in the entry.

[0025] (2) If the static domain access instruction accesses a static domain outside the package, first, find the static domain address of the corresponding package through the package_token in the corresponding entry of the constant pool as the base address; then, use this base address with The physical address of t...

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 method for improving the execution efficiency of a static field access command during running of a Java card virtual machine. The method comprises the following steps of: (1) completing resolving of the physical address of a static field during downloading of a CAP (computer-aided production) file, namely replacing contents of a corresponding entry of the static field in a constant pool with a physical address of the static field during downloading of a constant pool component of the CAP file; (2) during resolving of an quotation position, storing the physical address of the static field in the command; and (3) during running of the Java card virtual machine, directly acquiring the physical address of the static field by using the static field access command. By adopting the method, the physical address of the static field can be directly accessed during running of the Java card virtual machine, the execution efficiency of the static field access command is improved, and the running speed of the Java card virtual machine is increased.

Description

technical field [0001] The invention relates to the field of Java smart cards, in particular to a method for improving the execution efficiency of static domain access instructions in a Java card virtual machine. The runtime performance of the virtual machine. Background technique [0002] A Java card is a contact microprocessor smart card that can run Java programs. Its basic idea is to maintain a Java virtual machine (JCVM) in the ROM of the smart card, and run Java applets (Java Applet) on this JCVM. The Java Card virtual machine is the core part of the Java Card. It is mainly responsible for interpreting and executing the Java Card application bytecode, controlling memory allocation, object creation, and ensuring the safe operation of the Java Card. The speed of bytecode parsing has an important impact on the running performance of the Java Card virtual machine. One class of instructions in the instruction set of the Java Card virtual machine is a static domain access ...

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/318
Inventor 熊传光李纪赛
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products