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

Method for optimizing operation of JAVA on platform

A platform and optimization tool technology, applied in the computer field, can solve problems such as long time consumption, slow performance, unresolved code security issues, etc., to achieve the effect of solving security issues and facilitating integration

Pending Publication Date: 2019-12-13
INSPUR SOFTWARE CO LTD
View PDF1 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The characteristics of JAVA realize cross-platform, platform-independent bytecode can be interpreted and executed by JVM on various platforms, but the problem is that the performance is slow, and the source code can be easily disassembled from the bytecode, the system is not safe
[0003] In the existing way, when the platform runs JAVA, the Hotspot JVM provided by the higher version of oracle JDK provides a JIT (Just In Time) compiler and a dynamic compiler. When the program is running, the JIT converts the hotspot code into a machine by preheating Code, the bytecode of the compilation process is cached in the codeCache, and in this case, some hot codes are compiled and executed instead of interpreted and executed. Although the JIT part improves the running performance of the JAVA program, it still consumes For a long time, the code security issue has not been resolved
[0004] In addition, oracle JDK9 proposes a new compilation method, namely AOT (ahead-of-timecomplication), which directly compiles bytecode into machine code, avoiding the warm-up consumption of JIT and other aspects, but the code compiled by aot is static ,Although the performance has been greatly improved, the program still needs to rely on JAVA and .class files when running, and still needs to rely on the original HelloWorld.class file when running, and the code security problem has not yet been resolved

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 optimizing operation of JAVA on platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The invention provides a method for optimizing the operation of JAVA on a platform. The bytecode in the JAVA general .class file is precompiled to analyze the bytecode file structure, and then compiled to generate an assembly code .s file, and the assembly code .s The file assembly generates object code files whose organization format is .o files. The object code files are linked to confirm the interdependence, and generate machine code running on the platform for executing JAVA and the corresponding dynamic library.

[0021] At the same time, an optimization tool for JAVA running on the platform corresponding to the above method is provided, including an optimization unit,

[0022] The optimization unit precompiles and analyzes the bytecode file structure of the bytecode in the common .class file of JAVA, and then compiles it to generate the assembly code .s file, and assembles the assembly code .s file to generate the target whose organization format is .o file. The i...

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 optimizing operation of JAVA on a platform, and relates to the technical field of computers. The method comprises the following steps that a . S file is mixed in abyte code compiling stage; dynamic calling of JAVA is converted into the dynamic calling of C; byte codes of JAVA are generated into machine codes which can be directly operated on the platform; theplatform enables the C / C + + language to call the JAVA program more easily through the dynamic library, the performance is much faster than JAVA byte code interpretation, meanwhile, the JAVA languagecode security problem is solved, the generated machine code can be executed without depending on a third-party specific program, and integration with the C / C + + language is facilitated.

Description

technical field [0001] The invention discloses a method for optimizing operation of JAVA on a platform, and relates to the technical field of computers. Background technique [0002] JAVA is a cross-platform language that is widely used. The characteristics of JAVA realize cross-platform, platform-independent bytecode can be interpreted and executed by JVM on various platforms, but the problem is that the performance is slow, and the source code can be easily disassembled from the bytecode, and the system is not safe. . [0003] In the existing way, when the platform runs JAVA, the Hotspot JVM provided by the high version of oracle JDK provides a JIT (Just In Time) compiler, a dynamic compiler, and when the program is running, the JIT converts the hot code into the machine by preheating code, cache the bytecode of the compilation process in the codeCache, and in this case, some hot codes are compiled and executed instead of interpreted and executed. Although the JIT part i...

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/41
CPCG06F8/443G06F8/42
Inventor 李朝铭王建华潘琪
Owner INSPUR SOFTWARE CO LTD
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