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

Method and apparatus for calling local function in Java card virtual machine

A virtual machine and function technology, applied in the field of Java card virtual machine system, can solve the problem of low execution efficiency of local functions, and achieve the effect of improving efficiency

Inactive Publication Date: 2015-10-28
ZHONGCHAO CREDIT CARD IND DEV
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of the present invention is to provide a method and device for invoking local functions in a Java Card virtual machine, which can better solve the problem of low execution efficiency of local functions

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 apparatus for calling local function in Java card virtual machine
  • Method and apparatus for calling local function in Java card virtual machine
  • Method and apparatus for calling local function in Java card virtual machine

Examples

Experimental program
Comparison scheme
Effect test

specific example

[0093] For example, if the index value of a local function X is n, when parsing invokenative+n, take out the function index n, and then call the local function X with n as a parameter. Specific examples are as follows:

[0094]

[0095] In summary, the present invention has the following technical effects:

[0096] 1. The present invention is applied to the research and development of the Java Card virtual machine system. The Java Card virtual machine is the core of the Java Card technology. It is a virtual machine technology that interprets and executes. Its performance index is one of the important indicators of the Java Card virtual machine. The present invention has important practical value for improving the performance of the Java card virtual machine;

[0097] 2. The present invention is also applicable to other virtual machine technologies except the Java Card virtual machine, as long as the virtual machine technology has the call requirement of local functions, an...

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 and apparatus for calling a local function in a Java card virtual machine and relates to a Java card virtual machine system. The method comprises: determining whether a generated Java card assembly file comprises a local function or not; if the Java card assembly file comprises a local function, changing an original link relationship of the local function to a local function link relationship that can directly execute the local function; and calling the local function by using the local function link relationship. According to the invention, local function execution efficiency of the Java card virtual machine is improved, and storage space of a Java card is reduced as well.

Description

technical field [0001] The invention relates to a Java card virtual machine system, in particular to a calling method of a local function in a Java card virtual machine and a related device. Background technique [0002] A native function in a Java Card virtual machine refers to a function modified with the native keyword, and its implementation does not use the Java code language. Since the Java Card virtual machine is a virtual computer, it has an independent instruction set and stack, but it only relies on its own instruction set system and cannot directly access the hardware resources of the smart card chip. For this reason, the Java Card virtual machine uses local functions to extend its functionality. [0003] There is no difference between the Java Card virtual machine calling local functions and other functions (hereinafter referred to as ordinary functions). There are four calling instructions involving functions in the Java Card virtual machine specification: invo...

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
IPC IPC(8): G06F9/455G06F9/45
Inventor 梁青王玉忠杨向军张一峰唐守勤张伟刘彦顺
Owner ZHONGCHAO CREDIT CARD IND DEV
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