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

Modular compiling method and modular compiling device by utilizing dependency relationship of Makefile

A technology of dependencies and compilation methods, applied in code compilation, programming language/paradigm, program code conversion, etc., can solve problems such as unproposed solutions

Pending Publication Date: 2020-01-31
北京君正集成电路股份有限公司
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] For the problem that two systems need to be used, no effective solution has been proposed so far

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
  • Modular compiling method and modular compiling device by utilizing dependency relationship of Makefile
  • Modular compiling method and modular compiling device by utilizing dependency relationship of Makefile

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in further detail below in conjunction with the embodiments and accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention.

[0032] For the dependency problem in the existing compilation process, it can be achieved in the following ways:

[0033] 1) Running dependencies:

[0034] This situation mostly occurs in the linux kernel code, and the compilation process between modules does not have a strong dependency relationship. However, in order for program A to execute normally, when module A is selected for compilation, module B also needs to be compiled. In this case, the dependency relationship is generally described in Kconfig to ensure that when Makefile compiles and generates program a, program b will also be gen...

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 modular compiling method and device using the dependency relationship of Makefile itself, and the method comprises the steps: searching a file depended by the current compiling and / or a module depended by the current compiling from a dependency relationship total set when the Makefile executes the compiling of a target project; determining whether a dependent file and / or adependent module exists or not; if not, preferentially compiling to obtain a dependent file and / or preferentially compiling a dependent module; and when it is determined that both the dependent fileand the dependent module exist, triggering compiling. By means of the mode, the technical problem that in order to solve the dependency problem in the compiling process, two systems are needed for participation, and consequently operation is too complex is solved, and the technical effect that one Makefile system can be used for solving the compiling dependency and compiling problems between modules at the same time is achieved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a modular compilation method and device utilizing the dependency relationship of Makefile itself. Background technique [0002] In order to realize the correct and orderly compilation of the code, the Makefile is generally required to organize the compilation. Among them, Makefile defines a series of rules to specify which files need to be compiled first, which files need to be compiled later, which files need to be recompiled, or other more complex operations. However, for larger projects, there are dependencies between multiple modules, and the dependencies mainly include: dependencies during operation and dependencies during compilation. [0003] The following describes the two dependencies as follows: [0004] 1) Running dependencies: [0005] This dependency is generally an environment created by a module relying on another module. For example: module A is compiled to ...

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): G06F8/30G06F8/41
CPCG06F8/41G06F8/31
Inventor 赫昆迎
Owner 北京君正集成电路股份有限公司