Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

File compiling method and device

A compiling method and file technology, which is applied in the computer field, can solve the problems of consuming system resources and long compiling time of source program code, and achieve the effect of saving time and improving speed

Inactive Publication Date: 2011-10-05
SHENZHEN IPANEL TECH LTD
View PDF4 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] This application provides a file compiling method and device to solve the problem in the prior art that compiling source program codes containing pure data text in an embedded environment takes a long time to compile and consumes system resources

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
  • File compiling method and device
  • File compiling method and device
  • File compiling method and device

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0047] see figure 1 , which is the flow chart of the first embodiment of the application file compilation method:

[0048] Step 101: Divide the source file to be compiled into a data file and a logic file.

[0049] When this embodiment is applied to an embedded system, the data in the data file is hexadecimal data converted according to the array syntax.

[0050] Step 102: Directly assemble and transform the data files according to the preset compilation rules to generate intermediate data files.

[0051] Wherein, the assembly rule may be saved by a script file written in advance, for example, a script file written in Perl language.

[0052] Specifically, analyze the data file, obtain the length of the original data in the data file, output the beginning part of the assembly file according to the content of the data file, output the data part in the data file according to the format of the assembly file, and output the part of the assembly file according to the content of th...

no. 1 example

[0128] see image 3 , which is the block diagram of the first embodiment of the document compiling device of the present application:

[0129] The file compiling device includes: a segmentation unit 310 , a conversion unit 320 , a compiling unit 330 and a merging unit 340 .

[0130] Wherein, the segmentation unit 310 is used to divide the source file to be compiled into a data file and a logic file;

[0131] A conversion unit 320, configured to directly perform compilation conversion on the data file according to a preset compilation rule to generate an intermediate data file;

[0132] Compiling unit 330, configured to compile the logic file to generate an intermediate logic file;

[0133] The merging unit 340 is configured to merge the intermediate data file and the intermediate logic file to generate a target file.

no. 2 example

[0134] see Figure 4 , which is a block diagram of the second embodiment of the document compiling device of the present application:

[0135] The file compiling device includes: a saving unit 410 , a splitting unit 420 , a converting unit 430 , a compiling unit 440 and a merging unit 450 .

[0136] Wherein, the saving unit 410 is used to pre-save a script file written according to the compilation rules of the data file, and the script file is used to compile and convert the data file;

[0137] A segmentation unit 420, configured to divide the source file to be compiled into a data file and a logic file;

[0138] A conversion unit 430, configured to directly perform compilation conversion on the data file according to a preset compilation rule to generate an intermediate data file;

[0139] Compiling unit 440, configured to compile the logic file to generate an intermediate logic file;

[0140] The merging unit 450 is configured to merge the intermediate data file and 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 embodiment of the invention discloses a file compiling method and device. The method comprises the following steps: splitting a source file to be compiled into a data file and a logic file; directly assembling and transforming the data file according to a preset assembling rule to generate an intermediate data file; compiling the logic file to generate an intermediate logic file; and combining the intermediate data file with the intermediate logic file to obtain a target file. According to the embodiment of the invention, the file compiling method can improve the target file generation speed because the data file can be directly transformed according to the preset assembling rule rather than directly compiling the data file, thereby saving the time as well as the system resources consumed by compiling the large amount of data files.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a file compiling method and device. Background technique [0002] Compilation is the process of turning a high-level language into a computer-recognizable binary language, that is, the process of converting a source file into an object file through a compiler. Generally, source files refer to files written in high-level languages, for example, high-level languages ​​may include Pascal, C, C++, Java, etc., while target files are files written in low-level languages ​​such as assembly language or machine language. In the prior art, the compilation process from the source file to the target file is implemented by a compiler. Usually, the result data generated by the compilation is an executable file, and the content of the executable file can be interpreted by a computer as a directly running program. In the process of writing source files under Windows operating system...

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 SHENZHEN IPANEL TECH LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products