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

Method and device for generating output constant pool of software package

A software package and constant pool technology, applied in software deployment, software maintenance/management, database indexing, etc., can solve problems such as poor compatibility and poor expansion flexibility, and achieve the effect of reducing storage space and ensuring compatibility.

Active Publication Date: 2022-06-07
北京熵核科技有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when the software package is updated, the public class members of the running class library will increase or decrease, and the number of each class member is fixed, which leads to poor compatibility between different versions of the software package, and the application programming interface (Application Programming Interface, API ) has poor expansion flexibility

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 device for generating output constant pool of software package
  • Method and device for generating output constant pool of software package
  • Method and device for generating output constant pool of software package

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] In order to make the objectives, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.

[0064] In the description of the embodiments of the present application, words such as "exemplary", "such as" or "for example" are used to mean serving as an example, illustration or illustration. Any embodiments or designs described in the embodiments herein as "exemplary," "such as," or "by way of example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, use of words such as "exemplary," "such as," or "by way of example" is intended to present the related concepts in a specific manner.

[0065] In the description of the embodiments of the present application, the term "and / or" is only an association relationship for describing associated objects, indicating 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 provides a method and a device for generating an output constant pool of a software package. The method comprises the following steps: extracting a first initial constant pool corresponding to the software package from the software package; the first initial constant pool comprises at least one first class member item of the software package, and each first class member item in the at least one first class member item comprises a first index parameter defined as a class member needing to be exposed; performing compression processing on the first index parameter to obtain a first compression identifier of the class member; and an output constant pool of the software package is generated, the output constant pool comprises a plurality of second-class member items of the software package, and each second-class member item in the plurality of second-class member items comprises the first compression identifier and the addressing index of the class member. According to the embodiment of the invention, the storage space occupied by the constant pool can be reduced without deleting the constant pool, and each method item or variable item does not need to be indexed by using a fixed number, so that certain flexibility is reserved for the extension of the API.

Description

technical field [0001] The present application relates to the technical field of software development, and in particular, to a method and device for generating an output constant pool of a software package. Background technique [0002] Usually, a software system consists of several software packages. Some packages provide functionality, such as methods and variables, that can be referenced by other packages. These methods and variables must be exposed according to certain rules, and other software packages can call the exposed methods and variables. In a runtime system such as the Java virtual machine, the index parameters of these exposed variables and methods are usually reserved and stored in the constant pool in the form of strings. [0003] In resource-constrained systems such as smart card systems, the complete constant pool usually needs to be trimmed due to its huge size. For example, in JavaCard, classes, class member methods, and class member variables are numb...

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): G06F8/61G06F8/71G06F16/22
CPCG06F8/61G06F8/71G06F16/2255
Inventor 庹凌云王文东沈英哲陈远建吕彦辉
Owner 北京熵核科技有限公司