Supercharge Your Innovation With Domain-Expert AI Agents!

Java program precompiling method and precompiler

A pre-compiled and programmed technology, applied in the field of Java programming language, can solve problems such as large storage space and difficult code maintenance work, and achieve the effects of simple and efficient code management, saving storage space, and small workload

Active Publication Date: 2015-04-22
DATANG MICROELECTRONICS TECH CO LTD
View PDF6 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The present invention provides a Java program precompilation method and a precompiler, which are used to solve the problems in the prior art that a large amount of storage space is required and code maintenance is difficult due to the existence of a large number of repeated codes in code packages under different directories

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 program precompiling method and precompiler
  • Java program precompiling method and precompiler
  • Java program precompiling method and precompiler

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order for those skilled in the art to better understand the technical solution of the present invention, the Java program precompilation method and the precompiler provided by the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0023] see figure 1 , is a schematic flow chart of a Java program precompilation method provided by an embodiment of the present invention, such as figure 1 As shown, the Java program precompilation method includes:

[0024] Step S101, according to the target platform, obtain platform information corresponding to the target platform.

[0025] Step S102, scan the Java source file, identify the precompiled keyword in the Java source file, and obtain the semantics corresponding to the precompiled keyword.

[0026] Step S103, according to the semantics corresponding to the precompiled keyword, judge the platform information corresponding to the target platform, and identify 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 embodiment of the invention provides a Java program precompiling method and a precompiler. The method includes the steps of acquiring platform information corresponding to a target platform; scanning a Java source file, and recognizing precompiling keywords in the Java source file; according to the precompiling keywords, judging the platform information corresponding to the target platform and recognizing precompiling code segments in the Java source file, and according to a judgment result of the platform information, processing the precompiling code segments in the Java source file; according to a processing result, carrying out precompiling on the Java source file. In the precompiling process, the precompiler aims at different platforms and generates precompiling files corresponding to all the platforms, therefore, the same set of the source codes can be applied and implemented on the different platforms, and the storage space is saved; in addition, in the process of modifying the codes, the Java source file needs to be modified, and therefore code management can be simpler and more efficient.

Description

technical field [0001] The invention relates to the Java program language technology in the field, in particular to a Java program precompilation method and a precompiler. Background technique [0002] Java is an object-oriented programming language launched in May 1995 by Sun Microsystems. Since its inception, Java has become very popular because of its excellent versatility, high efficiency, and cross-platform features, and is widely used in personal PCs, data centers, game consoles, scientific supercomputers, mobile phones, the Internet, and embedded systems. [0003] The cross-platform feature of Java is aimed at application development. The Java virtual machine shields the differences between platforms when interpreting and executing applications. However, the Java virtual machine itself is not cross-platform. A virtual machine usually consists of two parts: The development SDK (usually implemented in Java), and the Native code that supports the running of the SDK (usu...

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/45
Inventor 秦远富王小文母智弘尚微
Owner DATANG MICROELECTRONICS TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More