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

JAVA intelligent card and virtual machine component optimization method thereof

A technology of a virtual machine component and an optimization method, applied in the field of smart cards, can solve the problems of high complexity of the query address and cumbersome solution process, and achieve the effect of simplifying the process of finding the method address and improving the execution efficiency.

Active Publication Date: 2020-04-17
HENGBAO
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The actual ultimate goal is to find the real address of the method on the JAVA card, and then use the method. Therefore, the existing solution process is cumbersome, and the complexity of querying the address is relatively high.

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
  • JAVA intelligent card and virtual machine component optimization method thereof
  • JAVA intelligent card and virtual machine component optimization method thereof
  • JAVA intelligent card and virtual machine component optimization method thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] like figure 1 As shown, when the JAVA smart card virtual machine calls a method, the calling method format used includes a virtual reference opcode of one byte and an index byte of two bytes:

[0032] (1) Virtual reference opcode: Set the corresponding virtual reference opcode for different calling methods in the JAVA smart card virtual machine in advance. For example, the virtual reference opcode of the static reference calling method is 0x8D, and the virtual reference operation of the special reference calling method The code is 0x8C;

[0033] (2) Index byte: The index byte indicates the location address of the method, specifically the index combination of the relative address, including the package index (Package index) and the constant pool address index (Constant Pool index); two-byte index bytes Represented as 0x0000~0xFFFF;

[0034] Specifically, the constant pool list can be found through the package address index, and the information of all packages is listed...

example

[0038] Among them, the specific method called by the JAVA smart card virtual machine is a collection of code blocks that implement a specific function, such as a special reference (invokespecial, used to call some instance methods that require special processing, such as instance initialization methods, private methods, parent class methods, etc.) , static reference (invokestatic, used to call class methods);

[0039] For example, if the JAVA smart card virtual machine wants to call a static reference calling method, the calling method format used includes a one-byte virtual reference opcode 0x8D and a two-byte index byte 0x6666. The calling method format is as follows:

[0040]

[0041]

[0042] Find the real address where the static reference calling method is located according to the two-byte index byte 0x6666 in the calling method format, specifically: the first 7 bits of the first 0x66 byte in the index byte 0x6666 indicate the package address index, the first 0x66 Th...

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 JAVA intelligent card and a virtual machine component optimization method thereof. The method comprises the steps that after a JAVA intelligent card virtual machine calls some specific methods, virtual reference operation codes in a calling method format are modified according to special operation codes corresponding to space blocks where the specific methods are located,and index bytes in the calling method format are modified according to real physical addresses of the specific methods; the original calling method format of the specific method and the modified calling method format corresponding to the specific method are correspondingly stored; and when a certain specific method is called again, a corresponding calling method format is found from the stored calling method formats according to the virtual reference operation code of the specific method, and a real physical address of the specific method is directly obtained according to the found calling method format. The real physical address of the method can be quickly and conveniently found, the process of finding the address of the method is simplified, and the program execution efficiency of theJAVA intelligent card is improved.

Description

technical field [0001] The present application relates to the field of smart cards, and in particular, to a JAVA smart card and a method for optimizing a virtual machine component thereof. Background technique [0002] The JAVA Smart Card Virtual Machine (JCVM for short, JAVA Card Vitual Machine) specification defines a JAVA-compatible virtual machine for smart cards. The JAVA smart card virtual machine is a virtual machine model used to support the operation of bytecodes to realize the characteristics of the JAVA language of the smart card platform. [0003] JAVA smart card virtual machine is the core part of JAVA smart card, which can parse a series of components (such as header component (COMPONENT_Header), constant pool component (COMPONENT_ConstantPool), class component (COMPONENT_Class), method component (COMPONENT_Method), debugging component (COMPONENT_Debug), etc. ) composed of a package file (package), the components are all in the form of bytecode, and the JAVA s...

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/45558G06F2009/45591
Inventor 王永安何碧波
Owner HENGBAO