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

Code compiling method and device

A compiling method and code technology, applied in the direction of code compilation, program code conversion, instruments, etc., can solve the problems of cumbersome compilation of multiple modules, increase the risk of errors, probabilistic errors, etc., so as to improve compilation efficiency and ensure compilation accuracy. Effect

Inactive Publication Date: 2018-11-27
NANCHANG HUAQIN ELECTRONIC TECH CO LTD
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this approach will cause probabilistic errors. Sometimes a certain part of the code is modified but not compiled, causing the code to fail to be updated.
Existing code can be compiled in modules, but it is necessary to manually select which module to compile, requiring programmers to clearly identify the module to which the code they modify belongs, which increases the risk of errors, and when modifying multiple modules, it is necessary to manually enter multiple commands Compiling multiple modules is tedious

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0066] like figure 1 As shown, this embodiment provides a code compilation method, including the following steps:

[0067] S10: Modify part or all of the code modules in the program.

[0068] S20: Determine whether to save the modification to the code module: if yes, execute S30; if not, terminate the program or return to S10.

[0069] Specifically, the saving judgment step is set to effectively remove the impact of invalid modifications. When the modification is not saved, the code module should be able to execute the last compilation result without recompiling, so the compilation description related to the code module Files may not be logged. Of course, in order to avoid omissions, S20 may not be set, and S3 is directly executed as long as S10 is executed.

[0070] S30: Record the identification information of the compilation description file corresponding to the modified code module in the record file. Preferably, S30 includes:

[0071] S301: Determine whether the reco...

Embodiment 2

[0102] The difference between this embodiment and Embodiment 1 is:

[0103] This embodiment does not have step S60, and step S3023 of this embodiment is as follows:

[0104] S3023: Clear the content in the record file, and then record the found path and file name of the compilation description file in the record file.

Embodiment 3

[0106] like figure 2 As shown, this embodiment provides a code compiling device that can execute the code compiling method in Embodiment 1, including a code modifying module 1, a first judging module 2, an identification information recording module 3, a compiling module 4, an integrating module 5 and Clear module 6.

[0107] The code modification module 1 is used to modify part or all of the code modules in the program. The first judging module 2 is respectively connected with the code modification module 1 and the identification information recording module 3, and is used to judge whether to save the modification to the code module; the judgment result of the first judging module 2 is used to decide whether to start the Identification information recording module 3; when the judgment result of the first judgment module 2 is "yes", the identification information recording module 3 starts and starts working; when the judgment result of the first judgment module 2 is "no", 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 relates to the technical field of code compiling and particularly discloses a code compiling method and device, wherein the method includes the following steps: modifying some or all ofthe code modules in a program; recording identifying information of a compiled description file corresponding to the modified code modules in a record file; when compiling the program, recompiling with the code modules corresponding to the compiled description file recorded in the record file, and performing the last compilation result with the code modules corresponding to the compiled description file not recorded in the record file. The code compiling method has the advantages that by setting the record file to record the identifying information of the compiled description file corresponding to the modified code modules, the goal of recording the modified code modules is attained and automatic recording after modifying the codes is achieved; in addition, only the modified code modules are recompiled, which can ensure correct rate of compiling and increase compiling efficiency.

Description

technical field [0001] The invention relates to the technical field of code compilation, in particular to a code compilation method and device. Background technique [0002] At present, most of the code compilation will perform full compilation, that is, even if a small part of the code is modified, all the code will be recompiled when the compilation command is executed. For some systems with relatively large codes, such as the underlying BIOS code of the Windows platform and the kernel code of the Android platform, it takes a very long time to perform a full compilation, which is very inconvenient for the development and debugging process. [0003] In order to improve compilation efficiency, for some code structures, such as BIOS code, you can choose not to clear the results of the last compilation before compiling, so that some code modules will not be compiled when compiling the code, and the results of the last compilation will be used directly. However, this approach ...

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/4441
Inventor 邓俊
Owner NANCHANG HUAQIN ELECTRONIC TECH 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