CN117616387A - Incremental compiling processing method and device, electronic equipment and storage medium - Google Patents

Incremental compiling processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117616387A
CN117616387A CN202280004590.8A CN202280004590A CN117616387A CN 117616387 A CN117616387 A CN 117616387A CN 202280004590 A CN202280004590 A CN 202280004590A CN 117616387 A CN117616387 A CN 117616387A
Authority
CN
China
Prior art keywords
file
information
initial
dependent
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202280004590.8A
Other languages
Chinese (zh)
Inventor
董俊杰
杨冬东
王健宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Publication of CN117616387A publication Critical patent/CN117616387A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Abstract

The disclosure provides an incremental compiling processing method, an incremental compiling processing device, electronic equipment and a storage medium, wherein the method comprises the following steps: obtaining initial compiling information, wherein the initial compiling information comprises: the method comprises the steps of initial file information, obtaining dependency file information with a first dependency relationship with an initial file indicated by the initial file information, generating incremental compiling information according to initial compiling information and the dependency file information, and performing incremental compiling processing according to the incremental compiling information. Through the method and the device, the exception encountered by incremental compiling can be avoided, the safety of the incremental compiling is effectively improved, a large amount of compiling time cost is avoided being brought in, and the development efficiency of the system module is effectively improved.

Description

Incremental compiling processing method and device, electronic equipment and storage medium Technical Field
The disclosure relates to the field of computer technology, and in particular, to an incremental compiling processing method, an incremental compiling processing device, electronic equipment and a storage medium.
Background
Currently, in the process of building commercial-level product systems, tools for automated compiling and deployment are provided for all components of each system, which is an important system component in the requisite overall development link.
In the related art, although the original automatic construction system supports concurrent compiling of each module and incremental compiling, the implementation mode of incremental compiling is based on compiling a file with current changes after the whole compiling is passed.
In this way, when complex dependency relationship exists between system modules, the incremental compiling is easy to encounter abnormality, the security of the incremental compiling is affected, and a large amount of compiling time cost is easy to be brought in, so that the development efficiency of the system modules is affected.
Disclosure of Invention
The present disclosure aims to solve, at least to some extent, one of the technical problems in the related art.
Therefore, the present disclosure aims to provide a method, an apparatus, an electronic device, a storage medium and a computer program product for incremental compiling processing, which can avoid the occurrence of anomalies in incremental compiling, effectively improve the safety of incremental compiling, avoid bringing a large amount of compiling time cost, and effectively improve the development efficiency of system modules.
The incremental compiling processing method provided by the embodiment of the first aspect of the present disclosure includes: obtaining initial compiling information, wherein the initial compiling information comprises: initial file information; acquiring dependent file information of a first dependent relation with an initial file indicated by the initial file information; generating incremental compiling information according to the initial compiling information and the dependent file information; and performing incremental compiling processing according to the incremental compiling information.
In one embodiment, the initial compilation information further includes: a file compiling type; before obtaining the dependent file information having the first dependency relationship with the initial file to which the initial file information belongs, the method further comprises: and determining an initial file according to the file compiling type and the initial file information.
In one embodiment, determining an initial file according to a file compilation type and initial file information includes: if the file compiling type is the deleting operation type, acquiring a file to be deleted indicated by the deleting operation type as an initial file according to the initial file information; if the file compiling type is a change operation type, determining change information content supported by the change operation type according to the initial file information, and taking a file to which the change information content belongs as an initial file.
In one embodiment, obtaining the dependent file information having the first dependency relationship with the initial file indicated by the initial file information includes: acquiring inter-module dependency information corresponding to the initial file information, wherein the inter-module dependency information describes the dependency condition between a first system module to which the initial file belongs and other system modules; obtaining shared configuration information corresponding to the initial file information, wherein the shared configuration information describes the conditions of shared configuration parameters between the initial file and other files; and obtaining the dependent file information according to the inter-module dependent information and the shared configuration information.
In one embodiment, obtaining the dependency file information according to the inter-module dependency information and the sharing configuration information includes: determining a second system module with a second dependency relationship with the first system module according to the inter-module dependency information, wherein the second system module comprises: a first dependent file; determining a second dependent file with sharing configuration parameters between the first dependent file and the initial file according to the sharing configuration information; and forming the dependent file information according to the first dependent file information of the first dependent file and the second dependent file information of the second dependent file.
In one embodiment, determining a second system module having a second dependency relationship with the first system module based on the inter-module dependency information includes: determining a second system module with a direct dependency relationship with the first system module according to the inter-module dependency information; determining a second system module with an indirect dependency relationship with the first system module according to the inter-module dependency information; the direct dependency relationship indicates a direct dependency between the first system module and the first system module, the indirect dependency relationship indicates an indirect dependency between the first system module and the second system module via the third system module, and the direct dependency relationship and the indirect dependency relationship are commonly used as a second dependency relationship.
In one embodiment, determining a second dependent file having shared configuration parameters with the initial file based on the shared configuration information includes: determining second dependent file information corresponding to the initial file information according to the shared configuration information; and determining the second dependent file according to the second dependent file information.
In one embodiment, determining the second dependent file based on the second dependent file information includes: taking the dependent file to which the second dependent file information belongs as a second dependent file; taking the dependent file in the system module to which the second dependent file information belongs as a second dependent file; and taking the dependent file with the third dependency relationship with the dependent file to which the second dependent file information belongs as the second dependent file.
In one embodiment, the incremental compiling process according to the incremental compiling information includes: compiling the initial file to which the initial file information belongs to obtain an initial compiled file; compiling the dependent file to which the dependent file information belongs to obtain a dependent compiled file; packaging a first system module to which an initial compiled file belongs to generate a first file resource package at a module level; and packaging the second system module to which the dependent compiled file belongs to generate a second file resource package at a module level.
In one embodiment, the incremental compiling process is performed according to the incremental compiling information, and further includes: deleting a historical compiling file corresponding to the initial file in the first system module; and deleting the historical compiled file corresponding to the dependent file in the second system module.
In one embodiment, the incremental compiling process is performed according to the incremental compiling information, and further includes: constructing a target system according to the first file resource package, the second file resource package and the third file resource package; the third file resource package is a file resource package corresponding to a third system module, and the third system module, the first system module and the second system module have no dependency relationship.
According to the incremental compiling processing method provided by the embodiment of the first aspect of the present disclosure, initial compiling information is obtained, where the initial compiling information includes: the method comprises the steps of obtaining initial file information, obtaining dependency file information with a first dependency relationship with an initial file indicated by the initial file information, generating incremental compiling information according to the initial compiling information and the dependency file information, and performing incremental compiling processing according to the incremental compiling information, so that the situation that the incremental compiling encounters an abnormality can be avoided, the safety of the incremental compiling is effectively improved, a large amount of compiling time cost is avoided, and the development efficiency of a system module is effectively improved.
An incremental compiling processing device according to an embodiment of a second aspect of the present disclosure includes: the first acquisition module is used for acquiring initial compiling information, wherein the initial compiling information comprises: initial file information; the second acquisition module is used for acquiring the dependent file information of the first dependent relation with the initial file indicated by the initial file information; the generating module is used for generating incremental compiling information according to the initial compiling information and the dependent file information; and the processing module is used for performing incremental compiling processing according to the incremental compiling information.
In one embodiment, the initial compilation information further includes: a file compiling type; wherein, still include: the determining module is used for determining the initial file according to the file compiling type and the initial file information before acquiring the dependent file information which has the first dependency relationship with the initial file to which the initial file information belongs.
In one embodiment, the determining module is specifically configured to: if the file compiling type is the deleting operation type, acquiring a file to be deleted indicated by the deleting operation type as an initial file according to the initial file information; if the file compiling type is a change operation type, determining change information content supported by the change operation type according to the initial file information, and taking a file to which the change information content belongs as an initial file.
In one embodiment, the second acquisition module includes: the first acquisition sub-module is used for acquiring inter-module dependency information corresponding to the initial file information, wherein the inter-module dependency information describes the dependency condition between a first system module to which the initial file belongs and other system modules; the second acquisition sub-module is used for acquiring shared configuration information corresponding to the initial file information, wherein the shared configuration information describes the conditions of shared configuration parameters between the initial file and other files; and the third acquisition sub-module is used for acquiring the dependent file information according to the inter-module dependent information and the shared configuration information.
In one embodiment, the third obtaining sub-module is specifically configured to: determining a second system module with a second dependency relationship with the first system module according to the inter-module dependency information, wherein the second system module comprises: a first dependent file; determining a second dependent file with sharing configuration parameters between the first dependent file and the initial file according to the sharing configuration information; and forming the dependent file information according to the first dependent file information of the first dependent file and the second dependent file information of the second dependent file.
In one embodiment, the third acquisition sub-module is further configured to: determining a second system module with a direct dependency relationship with the first system module according to the inter-module dependency information; determining a second system module with an indirect dependency relationship with the first system module according to the inter-module dependency information; the direct dependency relationship indicates a direct dependency between the first system module and the first system module, the indirect dependency relationship indicates an indirect dependency between the first system module and the second system module via the third system module, and the direct dependency relationship and the indirect dependency relationship are commonly used as a second dependency relationship.
In one embodiment, the third acquisition sub-module is further configured to: determining second dependent file information corresponding to the initial file information according to the shared configuration information; and determining the second dependent file according to the second dependent file information.
In one embodiment, the third acquisition sub-module is further configured to: taking the dependent file to which the second dependent file information belongs as a second dependent file; taking the dependent file in the system module to which the second dependent file information belongs as a second dependent file; and taking the dependent file with the third dependency relationship with the dependent file to which the second dependent file information belongs as the second dependent file.
In one embodiment, the processing module is specifically configured to: compiling the initial file to which the initial file information belongs to obtain an initial compiled file; compiling the dependent file to which the dependent file information belongs to obtain a dependent compiled file; packaging a first system module to which an initial compiled file belongs to generate a first file resource package at a module level; and packaging the second system module to which the dependent compiled file belongs to generate a second file resource package at a module level.
In one embodiment, the processing module is further configured to: deleting a historical compiling file corresponding to the initial file in the first system module; and deleting the historical compiled file corresponding to the dependent file in the second system module.
In one embodiment, the processing module is further configured to: constructing a target system according to the first file resource package, the second file resource package and the third file resource package; the third file resource package is a file resource package corresponding to a third system module, and the third system module, the first system module and the second system module have no dependency relationship.
According to the incremental compiling processing device provided by the embodiment of the second aspect of the present disclosure, initial compiling information is obtained, where the initial compiling information includes: the method comprises the steps of obtaining initial file information, obtaining dependency file information with a first dependency relationship with an initial file indicated by the initial file information, generating incremental compiling information according to the initial compiling information and the dependency file information, and performing incremental compiling processing according to the incremental compiling information, so that the situation that the incremental compiling encounters an abnormality can be avoided, the safety of the incremental compiling is effectively improved, a large amount of compiling time cost is avoided, and the development efficiency of a system module is effectively improved.
An embodiment of a third aspect of the present disclosure provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor executes the program to implement an incremental compiling processing method as set forth in the embodiment of the first aspect of the present disclosure.
An embodiment of a fourth aspect of the present disclosure proposes a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements an incremental compilation processing method as proposed by an embodiment of the first aspect of the present disclosure.
An embodiment of a fifth aspect of the present disclosure proposes a computer program product which, when executed by a processor, performs an incremental compilation processing method as proposed by an embodiment of the first aspect of the present disclosure.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The foregoing and/or additional aspects and advantages of the present disclosure will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flow chart of an incremental compilation processing method according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of an incremental compilation processing method according to another embodiment of the present disclosure;
FIG. 3 is a flow chart of an incremental compilation processing method according to another embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an incremental compiling processing device according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of an incremental compiling processing device according to another embodiment of the present disclosure;
fig. 6 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for explaining the present disclosure and are not to be construed as limiting the present disclosure. On the contrary, the embodiments of the disclosure include all alternatives, modifications, and equivalents as may be included within the spirit and scope of the appended claims.
Fig. 1 is a flowchart of an incremental compiling processing method according to an embodiment of the present disclosure.
Note that, the execution body of the incremental compiling processing method of the present embodiment is an incremental compiling processing device, which may be implemented by software and/or hardware, and the device may be configured in an electronic apparatus, which is not limited thereto.
An electronic device is a device that transmits data to or receives data from other devices via a communication facility, that is, the electronic device may be, for example, a terminal device, a computer device, or the like capable of network communication connection, which is not limited thereto.
As shown in fig. 1, the incremental compiling processing method includes:
s101: obtaining initial compiling information, wherein the initial compiling information comprises: initial file information.
In some application scenarios, for example, in the process of building a commercial-level product system, tools for automated compiling and deployment are provided for all components of each system, then information related to configuration, interfaces, processing logic, etc. for supporting automated compiling of a certain component or module in the system may be referred to as initial compiling information, which may be used to support automated compiling of the corresponding component or module, without limitation.
The information describing the file may be referred to as file information, where the file may be, for example, a configuration file, a computer program code file, etc. in a module or a component in the system, and when it is determined that automatic compilation of the system is required, file information determined based on the automatic compilation requirement may be referred to as initial file information.
In the embodiment of the disclosure, when it is determined that automatic compiling is required for the system, corresponding file information such as file name, file identifier, file size, file type and the like is determined as initial file information based on the automatic compiling requirement, and then the initial file information is packaged into the initial compiling information so as to support the incremental compiling processing method in the embodiment of the disclosure.
S102: and acquiring the dependent file information of the first dependent relation with the initial file indicated by the initial file information.
After the initial compiling information is obtained, the initial file information can be obtained by analyzing the initial compiling information, and then, the information of other files which are required to be compiled and processed is analyzed based on the initial file information.
The file that is compiled based on the analysis requirement of the initial file information may be referred to as a dependent file, and if the initial file information is used to describe an initial file that generates a change or needs to be deleted, the dependent file may be regarded as a file that has a dependency relationship with the initial file or a file that shares configuration parameters with the initial file, which is not limited.
The dependency relationship between the initial file and the dependent file may be referred to as a first dependency relationship, and the first dependency relationship may be understood as having a certain influence on compiling and running of the dependent file when the initial file is operated.
In the embodiment of the disclosure, the initial file information may be first analyzed to determine the file described by the initial file information as the initial file indicated by the initial file information, then, the dependent file having the first dependency relationship with the initial file may be determined, and the file name, the file identifier, the file size, the file type and other file information of the dependent file may be obtained as the dependent file information, which is not limited.
Optionally, in some embodiments, the file compiling type may be further obtained by parsing the initial compiling information, and before obtaining the dependent file information having the first dependency relationship with the initial file to which the initial file information belongs, the initial file may be determined according to the file compiling type and the initial file information, that is, the specific operation type (may be referred to as a file compiling type) of the compiling operation is supported to determine the compiling operation to be performed on the file according to the automatic compiling requirement, and then the initial file is determined pertinently based on the file compiling type, so that accuracy of determining the initial file is effectively improved, and resource cost required by compiling is greatly reduced while ensuring compiling security and integrity is achieved.
For example, a plurality of candidate files to be compiled may be determined according to the initial file information, and then, a candidate compilation file whose compilation type satisfies the specified compilation type is determined as the initial file.
For example, a system module or a component to which a file supporting the file compilation type belongs may be determined, and an initial file may be selected from files included in the system module or the component, which is not limited.
Alternatively, in some embodiments, when the file compiling type is the deleting operation type, the file to be deleted indicated by the deleting operation type may be obtained as the initial file according to the initial file information, and when the file compiling type is the changing operation type, the changing information content supported by the changing operation type may be determined according to the initial file information, and the file to which the changing information content belongs may be taken as the initial file.
Wherein, the operation for performing the whole or partial deletion processing on the file may be referred to as a deletion operation, and the information for identifying the type of the deletion operation may be referred to as a deletion operation type; and an operation for performing full or partial content modification on the file may be referred to as a change operation, and information for identifying the type of the change operation may be referred to as a change operation type; and based on the change operation type, the information content to be changed is determined, which may be referred to as change information content, and the change information content may be local information content in one file, and then the file to which the change information content belongs may be directly used as an initial file.
That is, in the embodiment of the present disclosure, accurate identification of an initial file that matches a deletion operation type or a change operation type is supported, and since the deletion operation type or the change operation type affects the compiling and running security of other associated dependent files, when determining dependent file information based on the initial file that matches the deletion operation type or the change operation type, the influence on other associated dependent files when performing a deletion operation or a change operation on the initial file in the system is effectively avoided, and the compiling security can be improved to a greater extent.
S103: and generating incremental compiling information according to the initial compiling information and the dependent file information.
After the initial compiling information is obtained and the initial file information is obtained from the initial compiling information by analyzing, the initial compiling information and the dependent file information with the first dependency relationship with the initial file indicated by the initial file information are obtained, the initial compiling information and the dependent file information can be processed to generate the compiling information which can be directly read and called as incremental compiling information.
For example, assuming that the initial compilation information is a file name of an initial file and the dependent file information is a file name of a dependent file, resource information required for compiling the initial file may be obtained based on the file name of the initial file, resource information required for compiling the dependent file may be obtained based on the file name of the dependent file, and then incremental compilation information may be generated according to the two-part compilation resource information, and the incremental compilation information may support an automated incremental compilation process because the incremental compilation information may carry the two-part compilation resource information.
S104: and performing incremental compiling processing according to the incremental compiling information.
After the incremental compiling information is generated according to the initial compiling information and the dependent file information, the resource information required for compiling can be determined from the incremental compiling information, and then incremental compiling processing is performed based on the resource information required for compiling, which is not limited.
In this embodiment, initial compiling information is obtained, where the initial compiling information includes: the method comprises the steps of initial file information, obtaining the dependent file information with a first dependency relationship with the initial file indicated by the initial file information, generating incremental compiling information according to the initial compiling information and the dependent file information, and performing incremental compiling according to the incremental compiling information, so that the situation that the incremental compiling encounters an abnormality can be avoided, the safety of the incremental compiling is effectively improved, a large amount of compiling time cost is avoided, and the development efficiency of a system module is effectively improved.
Fig. 2 is a flowchart illustrating an incremental compiling processing method according to another embodiment of the present disclosure.
As shown in fig. 2, the incremental compiling processing method includes:
s201: obtaining initial compiling information, wherein the initial compiling information comprises: initial file information.
The description of S201 may be specifically referred to the above embodiments, and will not be repeated here.
S202: and acquiring inter-module dependency information corresponding to the initial file information, wherein the inter-module dependency information describes the dependency condition between the first system module to which the initial file belongs and other system modules.
The information describing inter-dependencies between modules in the system may be referred to as inter-module dependency information, where the inter-module dependency information may specifically, for example, share a configuration file for a module a and a module B, and a compiling operation of a module B may be affected by a compiling change of a, so that a dependency relationship exists between the module a and the module B, and a dependency condition of the module B depending on the module a may be referred to as inter-module dependency information.
The inter-module dependency information in the embodiment of the disclosure may be configured by a project developer in a system development process, may develop a plurality of modules by the project developer, determine a module with a dependency condition based on a calling operation relationship between different modules, and record the module with the dependency condition in a dependency configuration file so as to support rapid acquisition of inter-module dependency information corresponding to initial file information in an incremental compiling process.
The inter-module dependency information corresponding to the initial file information may refer to determining a system module associated with the initial file, and the inter-module dependency information of the associated system module may be used as the inter-module dependency information corresponding to the initial file information, which is not limited thereto.
The associated system module may refer to a system module to which the initial file belongs, or a system module that depends on the initial file during compiling and running, which is not limited.
S203: and obtaining shared configuration information corresponding to the initial file information, wherein the shared configuration information describes the condition of shared configuration parameters between the initial file and other files.
The configuration parameter may be a configuration parameter of the hardware of the system itself, or a configuration parameter of software required by the system to operate, which is not limited.
The shared configuration parameters refer to configuration parameters shared by the initial file and other files.
The information of the parameter type, the parameter meaning, the parameter name and the like of the shared configuration parameter can be called shared configuration information.
The shared configuration information in the embodiment of the disclosure may be configured by a project developer in a system development process, a plurality of modules may be developed by the project developer, and based on compiling and calling relationships between different files, the condition that shared configuration parameters exist between each file and other files is determined, then information extraction is performed on the condition of the shared configuration parameters to obtain shared configuration information, and information of different files to which the shared configuration information belongs is recorded in the shared configuration file, so that the shared configuration information corresponding to the initial file information can be obtained quickly in a support increment compiling process.
S204: and obtaining the dependent file information according to the inter-module dependent information and the shared configuration information.
After the inter-module dependency information corresponding to the initial file information is acquired, other system modules described by the inter-module dependency information can be determined, then information of files related to other system modules is taken as the dependency file information, or after the shared configuration information corresponding to the initial file information is acquired, information of other files of which the described and the initial files share configuration parameters can be determined based on the shared configuration information and taken as the dependency file information, or file information of an intersection part determined based on the inter-module dependency information and the shared configuration information can be taken as the dependency file information, so that the method is not limited.
Optionally, in some embodiments, in order to improve the comprehensiveness and convenience of the identification of the dependency file, a second system module having a second dependency relationship with the first system module may be further determined according to the inter-module dependency information, where the second system module includes: and according to the first dependency file information of the first dependency file and the second dependency file information of the second dependency file, forming the dependency file information.
The system module associated with the initial file may be referred to as a first system module, and the system module having a dependency relationship with the first system module may be referred to as a second system module.
Various dependency relationships may exist between different system modules, for example, the system module a directly depends on the system module B, so that it may be determined that the dependency relationship between the system module a and the system module B is a direct dependency relationship, and the system module a indirectly depends on the system module B (for example, by relying on a third party system module), so that it may be determined that the dependency relationship between the system module a and the system module B is an indirect dependency relationship, or the compilation of the system module a may affect the compilation of the system module B, otherwise, the compilation of the system module B may not affect the compilation of the system module B, so that it may be determined that the dependency relationship between the system module a and the system module B is a unidirectional dependency relationship, and if the compilation of the system module a may affect the compilation of the system module B, otherwise, the compilation of the system module B may also affect the compilation of the system module B, so that it may be determined that the dependency relationship between the system module a and the system module B is a bidirectional dependency relationship, without limitation.
The dependency relationship between the different system modules may be referred to as a second dependency relationship. Accordingly, the second system module may include a plurality of files, and the files included in the second system module may be all used as first dependent files, and the first dependent files may be used for determining the dependent file information later.
Wherein, based on the shared configuration information, other files whose described shared configuration parameters with the initial file are determined may be referred to as second dependent files.
That is, the dependency file determined based on the inter-module dependency information in the embodiment of the present disclosure is a first dependency file, and the dependency file determined based on the shared configuration information is a second dependency file.
After determining the first dependent file and the second dependent file, the dependent file information may be formed according to the first dependent file information of the first dependent file and the second dependent file information of the second dependent file.
Optionally, in some embodiments, in order to comprehensively identify the second system module having a dependency relationship with the first system module based on the inter-module dependency information, the second system module having a direct dependency relationship with the first system module may be determined according to the inter-module dependency information, and the second system module having an indirect dependency relationship with the first system module may be determined according to the inter-module dependency information, where the direct dependency relationship indicates a direct dependency between the first system module and the first system module, the indirect dependency relationship indicates an indirect dependency between the first system module and the second system module via the third system module, and the direct dependency relationship and the indirect dependency relationship are jointly used as the second dependency relationship.
Optionally, in some embodiments, in order to quickly and accurately identify the second dependency file having a dependency relationship with the initial file based on the shared configuration information, and facilitate that the second dependency file information may be effectively traced, the second dependency file information corresponding to the initial file information may be determined according to the shared configuration information, and the second dependency file may be determined according to the second dependency file information.
Since the second dependent file information (e.g., file name, file type, file digest, file identification, etc. of the second dependent file) can be determined based on the shared configuration information, identification of the overall second dependent file based on the second dependent file information can be supported.
Optionally, in some embodiments, in order to accurately and quickly identify the second dependency file having a dependency relationship with the initial file based on the second dependency file information, and improve efficiency of overall incremental compiling of the system, the dependency file to which the second dependency file information belongs may be directly used as the second dependency file, the dependency file in the system module to which the second dependency file information belongs may be used as the second dependency file, and the dependency file having a third dependency relationship with the dependency file to which the second dependency file information belongs may be used as the second dependency file.
Wherein, the second dependent file information belongs to a dependent file, which refers to a file directly described by the second dependent file information; the dependent file in the system module to which the second dependent file information belongs refers to the dependent file contained in the system module associated with the second dependent file; the dependent file having the third dependency relationship to which the second dependent file information belongs may be a dependent file having shared configuration information with a file directly described by the second dependent file information, which is not limited.
S205: and generating incremental compiling information according to the initial compiling information and the dependent file information.
S206: and performing incremental compiling processing according to the incremental compiling information.
The descriptions of S205-S206 may be specifically referred to the above embodiments, and are not repeated herein.
In this embodiment, initial compiling information is obtained, where the initial compiling information includes: the method comprises the steps of initial file information, obtaining the dependent file information with a first dependency relationship with the initial file indicated by the initial file information, generating incremental compiling information according to the initial compiling information and the dependent file information, and performing incremental compiling according to the incremental compiling information, so that the situation that the incremental compiling encounters an abnormality can be avoided, the safety of the incremental compiling is effectively improved, a large amount of compiling time cost is avoided, and the development efficiency of a system module is effectively improved. The inter-module dependency information corresponding to the initial file information is obtained, wherein the inter-module dependency information describes the dependency condition between a first system module to which the initial file belongs and other system modules, and the shared configuration information corresponding to the initial file information is obtained, wherein the shared configuration information describes the condition of shared configuration parameters between the initial file and other files, and the dependency file information is obtained according to the inter-module dependency information and the shared configuration information, so that the dependency file information is determined according to the inter-module dependency information and the condition of the shared configuration parameters, the identification comprehensiveness and accuracy of the dependency condition in the system are ensured, the abnormity of incremental compiling can be avoided to the greatest extent, and the safety of incremental compiling is comprehensively improved.
Fig. 3 is a flowchart illustrating an incremental compiling processing method according to another embodiment of the present disclosure.
As shown in fig. 3, the incremental compiling processing method includes:
s301: obtaining initial compiling information, wherein the initial compiling information comprises: initial file information.
S302: and acquiring the dependent file information of the first dependent relation with the initial file indicated by the initial file information.
S303: and generating incremental compiling information according to the initial compiling information and the dependent file information.
The descriptions of S301 to S303 may be specifically referred to the above embodiments, and are not repeated herein.
S304: and compiling the initial file to which the initial file information belongs to obtain an initial compiled file.
The file obtained by compiling the initial file may be referred to as an initial compiled file.
The compiling refers to a process of generating a target program from a source program written in a source language by using a compiler. The compiling process can change the high-level language into a 2-system language which can be identified by a computer and can be divided into five stages: lexical analysis; analyzing grammar; semantic checking and intermediate code generation; code optimization; and generating an object code. The main part is to analyze the lexical and grammatical analysis, also called source program analysis, and the grammar error is found in the analysis process to give prompt information.
The initial compilation file may include: the intermediate code file generated after lexical analysis and grammar analysis of the initial file and the target code file obtained after code optimization are not limited.
In order to avoid the influence of the existing compiling file on the incremental compiling process and excessive resource consumption occupied by the existing compiling file, the embodiment of the disclosure may further delete the historical compiling file corresponding to the initial file in the first system module and delete the historical compiling file corresponding to the dependent file in the second system module before incremental compiling.
The compiled file existing in the first system module to which the initial file belongs may be referred to as a history compiled file corresponding to the initial file, and the compiled file existing in the second system module to which the dependent file belongs may be referred to as a history compiled file corresponding to the dependent file.
S305: and compiling the dependency file to which the dependency file information belongs to obtain a dependency compiled file.
The file obtained by compiling the dependency file may be referred to as a dependency compiled file.
Relying on compiled files may include: the intermediate code file generated by lexical analysis and grammar analysis of the dependent file and the target code file obtained by code optimization are not limited.
S306: and packaging the first system module to which the initial compiled file belongs to generate a first file resource package at a module level.
After the initial file to which the initial file information belongs is compiled to obtain an initial compiled file value, the first system module already contains the initial compiled file after incremental compiling, and then the first system module to which the initial compiled file belongs can be packaged to generate a module-level file resource package as a first file resource package.
S307: and packaging the second system module to which the dependent compiled file belongs to generate a second file resource package at a module level.
After the dependency file information is compiled to obtain the dependency compiled file, the second system module already contains the dependency compiled file after incremental compiling, and then the second system module to which the dependency compiled file belongs can be packaged to generate a module-level file resource package as a second file resource package.
The first file resource package and the second file resource package obtained by the above packaging process may be used to construct a complete system, which may be referred to in the following embodiments.
S308: constructing a target system according to the first file resource package, the second file resource package and the third file resource package; the third file resource package is a file resource package corresponding to a third system module, and the third system module, the first system module and the second system module have no dependency relationship.
When the complete system is constructed according to the first file resource package and the second file resource package obtained by the packaging process, the embodiment of the disclosure may further obtain a third file resource package of a third system module which is not subjected to incremental compiling, where the third system module may be a system module which is determined based on the above method steps and does not have a dependency relationship with the initial file, and the third file resource package may be obtained by compiling before incremental compiling, and then the third file resource package of the third system module may be directly pulled to support the combination of the first file resource package and the second file resource package, and the third file resource package constructs the complete product system as the target system.
In this embodiment, initial compiling information is obtained, where the initial compiling information includes: the method comprises the steps of initial file information, obtaining the dependent file information with a first dependency relationship with the initial file indicated by the initial file information, generating incremental compiling information according to the initial compiling information and the dependent file information, and performing incremental compiling according to the incremental compiling information, so that the situation that the incremental compiling encounters an abnormality can be avoided, the safety of the incremental compiling is effectively improved, a large amount of compiling time cost is avoided, and the development efficiency of a system module is effectively improved. The method comprises the steps of compiling an initial file to which initial file information belongs to obtain an initial compiled file, compiling a dependent file to which dependent file information belongs to obtain a dependent compiled file, packaging a first system module to which the initial compiled file belongs to generate a first file resource package of a module level, packaging a second system module to which the dependent compiled file belongs to generate a second file resource package of the module level, and effectively supporting module integration of the system level, and facilitating storage, calling and multiplexing of the file resource information of the module level. The target system is built according to the first file resource package, the second file resource package and the third file resource package, wherein the third file resource package is a file resource package corresponding to the third system module, and the third system module, the first system module and the second system module are not in a dependency relationship, so that the integration efficiency of the target system can be effectively improved after incremental compiling, and the integration and release effects of the target system are improved.
Fig. 4 is a schematic structural diagram of an incremental compiling processing device according to an embodiment of the present disclosure.
As shown in fig. 4, the incremental compiling processing device 40 includes:
the first obtaining module 401 is configured to obtain initial compiling information, where the initial compiling information includes: initial file information;
a second obtaining module 402, configured to obtain dependency file information that has a first dependency relationship with an initial file indicated by the initial file information;
a generating module 403, configured to generate incremental compiling information according to the initial compiling information and the dependent file information; and
and the processing module 404 is used for performing incremental compiling processing according to the incremental compiling information.
In some embodiments of the present disclosure, as shown in fig. 5, fig. 5 is a schematic structural diagram of an incremental compiling processing device according to another embodiment of the present disclosure, where the initial compiling information further includes: a file compiling type; wherein, still include:
the determining module 405 is configured to determine, before obtaining the dependent file information having the first dependency relationship with the initial file to which the initial file information belongs, the initial file according to the file compiling type and the initial file information.
In some embodiments of the present disclosure, the determining module 405 is specifically configured to:
If the file compiling type is the deleting operation type, acquiring a file to be deleted indicated by the deleting operation type as an initial file according to the initial file information;
if the file compiling type is a change operation type, determining change information content supported by the change operation type according to the initial file information, and taking a file to which the change information content belongs as an initial file.
In some embodiments of the present disclosure, wherein the second acquisition module 402 includes:
the first obtaining submodule 4021 is configured to obtain inter-module dependency information corresponding to the initial file information, where the inter-module dependency information describes a dependency condition between a first system module to which the initial file belongs and other system modules;
the second obtaining submodule 4022 is configured to obtain shared configuration information corresponding to the initial file information, where the shared configuration information describes a situation of shared configuration parameters between the initial file and other files;
the third obtaining sub-module 4023 is configured to obtain the dependency file information according to the inter-module dependency information and the sharing configuration information.
In some embodiments of the present disclosure, the third acquiring sub-module 4023 is specifically configured to:
determining a second system module with a second dependency relationship with the first system module according to the inter-module dependency information, wherein the second system module comprises: a first dependent file;
Determining a second dependent file with sharing configuration parameters between the first dependent file and the initial file according to the sharing configuration information;
and forming the dependent file information according to the first dependent file information of the first dependent file and the second dependent file information of the second dependent file.
In some embodiments of the present disclosure, wherein the third acquisition submodule 4023 is further configured to:
determining a second system module with a direct dependency relationship with the first system module according to the inter-module dependency information;
determining a second system module with an indirect dependency relationship with the first system module according to the inter-module dependency information;
the direct dependency relationship indicates a direct dependency between the first system module and the first system module, the indirect dependency relationship indicates an indirect dependency between the first system module and the second system module via the third system module, and the direct dependency relationship and the indirect dependency relationship are commonly used as a second dependency relationship.
In some embodiments of the present disclosure, wherein the third acquisition submodule 4023 is further configured to:
determining second dependent file information corresponding to the initial file information according to the shared configuration information;
and determining the second dependent file according to the second dependent file information.
In some embodiments of the present disclosure, wherein the third acquisition submodule 4023 is further configured to:
taking the dependent file to which the second dependent file information belongs as a second dependent file;
taking the dependent file in the system module to which the second dependent file information belongs as a second dependent file;
and taking the dependent file with the third dependency relationship with the dependent file to which the second dependent file information belongs as the second dependent file.
In some embodiments of the present disclosure, the processing module 404 is specifically configured to:
compiling the initial file to which the initial file information belongs to obtain an initial compiled file;
compiling the dependent file to which the dependent file information belongs to obtain a dependent compiled file;
packaging a first system module to which an initial compiled file belongs to generate a first file resource package at a module level;
and packaging the second system module to which the dependent compiled file belongs to generate a second file resource package at a module level.
In some embodiments of the present disclosure, wherein the processing module 404 is further configured to:
deleting a historical compiling file corresponding to the initial file in the first system module;
and deleting the historical compiled file corresponding to the dependent file in the second system module.
In some embodiments of the present disclosure, wherein the processing module 404 is further configured to:
constructing a target system according to the first file resource package, the second file resource package and the third file resource package;
the third file resource package is a file resource package corresponding to a third system module, and the third system module, the first system module and the second system module have no dependency relationship.
Corresponding to the delta compilation processing method provided by the embodiments of fig. 1 to 3, the present disclosure further provides a delta compilation processing device, and since the delta compilation processing device provided by the embodiments of the present disclosure corresponds to the delta compilation processing method provided by the embodiments of fig. 1 to 3, the implementation of the delta compilation processing method is also applicable to the delta compilation processing device provided by the embodiments of the present disclosure, and will not be described in detail in the embodiments of the present disclosure.
In this embodiment, initial compiling information is obtained, where the initial compiling information includes: the method comprises the steps of obtaining initial file information, obtaining dependency file information with a first dependency relationship with an initial file indicated by the initial file information, generating incremental compiling information according to the initial compiling information and the dependency file information, and performing incremental compiling processing according to the incremental compiling information, so that the situation that the incremental compiling encounters an abnormality can be avoided, the safety of the incremental compiling is effectively improved, a large amount of compiling time cost is avoided, and the development efficiency of a system module is effectively improved.
In order to achieve the above embodiments, the present disclosure further proposes an electronic device including: the incremental compiling processing method according to the foregoing embodiment of the present disclosure is implemented when the processor executes the program.
To achieve the above-described embodiments, the present disclosure also proposes a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements an incremental compilation processing method as proposed in the foregoing embodiments of the present disclosure.
To achieve the above-described embodiments, the present disclosure also proposes a computer program product that, when executed by an instruction processor in the computer program product, performs the incremental compilation processing method as proposed by the foregoing embodiments of the present disclosure.
Fig. 6 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present disclosure. The electronic device 12 shown in fig. 6 is merely an example and should not be construed as limiting the functionality and scope of use of the disclosed embodiments.
As shown in fig. 6, the electronic device 12 is in the form of a general purpose computing device. Components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry Standard architecture (Industry Standard Architecture; hereinafter ISA) bus, micro channel architecture (Micro Channel Architecture; hereinafter MAC) bus, enhanced ISA bus, video electronics standards Association (Video Electronics Standards Association; hereinafter VESA) local bus, and peripheral component interconnect (Peripheral Component Interconnection; hereinafter PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory; hereinafter: RAM) 30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard disk drive").
Although not shown in fig. 6, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a compact disk read only memory (Compact Disc Read Only Memory; hereinafter CD-ROM), digital versatile read only optical disk (Digital Video Disc Read Only Memory; hereinafter DVD-ROM), or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the various embodiments of the disclosure.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods in the embodiments described in this disclosure.
The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the electronic device 12, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks, such as a local area network (Local Area Network; hereinafter: LAN), a wide area network (Wide Area Network; hereinafter: WAN) and/or a public network, such as the Internet, via the network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 over the bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the incremental compilation processing method mentioned in the foregoing embodiment.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
It should be noted that in the description of the present disclosure, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present disclosure, unless otherwise indicated, the meaning of "a plurality" is two or more.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present disclosure in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present disclosure.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
Furthermore, each functional unit in the embodiments of the present disclosure may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present disclosure have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the present disclosure, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the present disclosure.

Claims (24)

  1. An incremental compiling processing method, comprising:
    obtaining initial compiling information, wherein the initial compiling information comprises: initial file information;
    Acquiring dependency file information of a first dependency relationship with an initial file indicated by the initial file information;
    generating incremental compiling information according to the initial compiling information and the dependent file information; and
    and performing incremental compiling processing according to the incremental compiling information.
  2. The method of claim 1, wherein the initial compilation information further comprises: a file compiling type; before the obtaining the dependent file information having the first dependency relationship with the initial file to which the initial file information belongs, the method further includes:
    and determining the initial file according to the file compiling type and the initial file information.
  3. The method of claim 2, wherein the determining the initial file according to the file compilation type and the initial file information comprises:
    if the file compiling type is a deleting operation type, acquiring a file to be deleted indicated by the deleting operation type as the initial file according to the initial file information;
    and if the file compiling type is a change operation type, determining change information content supported by the change operation type according to the initial file information, and taking a file to which the change information content belongs as the initial file.
  4. The method of claim 1, wherein the obtaining the dependent file information having the first dependent relationship with the initial file indicated by the initial file information comprises:
    acquiring inter-module dependency information corresponding to the initial file information, wherein the inter-module dependency information describes the dependency condition between a first system module to which the initial file belongs and other system modules;
    obtaining shared configuration information corresponding to the initial file information, wherein the shared configuration information describes the condition of shared configuration parameters between the initial file and other files;
    and acquiring the dependent file information according to the inter-module dependent information and the sharing configuration information.
  5. The method of claim 4, wherein the obtaining the dependency file information based on the inter-module dependency information and the shared configuration information comprises:
    determining a second system module with a second dependency relationship with the first system module according to the inter-module dependency information, wherein the second system module comprises: a first dependent file;
    determining a second dependent file with the sharing configuration parameters between the second dependent file and the initial file according to the sharing configuration information;
    And forming the dependent file information according to the first dependent file information of the first dependent file and the second dependent file information of the second dependent file.
  6. The method of claim 5, wherein the determining a second system module having a second dependency relationship with the first system module based on the inter-module dependency information comprises:
    determining a second system module with a direct dependency relationship with the first system module according to the inter-module dependency information;
    determining a second system module with an indirect dependency relationship with the first system module according to the inter-module dependency information;
    wherein the direct dependency relationship indicates a direct dependency between the first system module and the first system module, the indirect dependency relationship indicates an indirect dependency between the first system module and the second system module via a third system module, and the direct dependency relationship and the indirect dependency relationship are commonly used as the second dependency relationship.
  7. The method of claim 5, wherein determining a second dependent file having the shared configuration parameters with the initial file based on the shared configuration information comprises:
    Determining second dependent file information corresponding to the initial file information according to the sharing configuration information;
    and determining the second dependent file according to the second dependent file information.
  8. The method of claim 7, wherein said determining said second dependent file based on said second dependent file information comprises:
    taking the dependent file to which the second dependent file information belongs as the second dependent file;
    taking the dependent file in the system module to which the second dependent file information belongs as the second dependent file;
    and taking the dependent file with a third dependency relationship with the dependent file to which the second dependent file information belongs as the second dependent file.
  9. The method of claim 1, wherein performing the delta compilation process based on the delta compilation information comprises:
    compiling the initial file to which the initial file information belongs to obtain an initial compiled file;
    compiling the dependent file to which the dependent file information belongs to obtain a dependent compiled file;
    packaging the first system module to which the initial compiled file belongs to generate a first file resource package at a module level;
    And packaging the second system module to which the dependent compiling file belongs to generate a second file resource package at a module level.
  10. The method of claim 9, wherein the performing the delta compilation process according to the delta compilation information further comprises:
    deleting a history compiling file corresponding to the initial file in the first system module;
    and deleting the historical compiling file corresponding to the dependent file in the second system module.
  11. The method of claim 9, wherein the performing the delta compilation process according to the delta compilation information further comprises:
    constructing a target system according to the first file resource package, the second file resource package and the third file resource package;
    the third file resource package is a file resource package corresponding to a third system module, and the third system module, the first system module and the second system module do not have a dependency relationship.
  12. An incremental compiling processing device, comprising:
    the first acquisition module is used for acquiring initial compiling information, wherein the initial compiling information comprises: initial file information;
    The second acquisition module is used for acquiring the dependent file information of the first dependent relation with the initial file indicated by the initial file information;
    the generation module is used for generating incremental compiling information according to the initial compiling information and the dependent file information; and
    and the processing module is used for performing incremental compiling processing according to the incremental compiling information.
  13. The apparatus of claim 12, wherein the initial compilation information further comprises: a file compiling type; wherein, still include:
    the determining module is used for determining the initial file according to the file compiling type and the initial file information before the dependent file information which has a first dependency relationship with the initial file to which the initial file information belongs is obtained.
  14. The apparatus of claim 13, wherein the determining module is specifically configured to:
    if the file compiling type is a deleting operation type, acquiring a file to be deleted indicated by the deleting operation type as the initial file according to the initial file information;
    and if the file compiling type is a change operation type, determining change information content supported by the change operation type according to the initial file information, and taking a file to which the change information content belongs as the initial file.
  15. The apparatus of claim 12, wherein the second acquisition module comprises:
    the first acquisition sub-module is used for acquiring inter-module dependency information corresponding to the initial file information, wherein the inter-module dependency information describes the dependency condition between a first system module to which the initial file belongs and other system modules;
    the second acquisition sub-module is used for acquiring shared configuration information corresponding to the initial file information, wherein the shared configuration information describes the situation of shared configuration parameters between the initial file and other files;
    and the third acquisition sub-module is used for acquiring the dependent file information according to the inter-module dependent information and the sharing configuration information.
  16. The apparatus of claim 15, wherein the third acquisition sub-module is specifically configured to:
    determining a second system module with a second dependency relationship with the first system module according to the inter-module dependency information, wherein the second system module comprises: a first dependent file;
    determining a second dependent file with the sharing configuration parameters between the second dependent file and the initial file according to the sharing configuration information;
    And forming the dependent file information according to the first dependent file information of the first dependent file and the second dependent file information of the second dependent file.
  17. The apparatus of claim 16, wherein the third acquisition sub-module is further configured to:
    determining a second system module with a direct dependency relationship with the first system module according to the inter-module dependency information;
    determining a second system module with an indirect dependency relationship with the first system module according to the inter-module dependency information;
    wherein the direct dependency relationship indicates a direct dependency between the first system module and the first system module, the indirect dependency relationship indicates an indirect dependency between the first system module and the second system module via a third system module, and the direct dependency relationship and the indirect dependency relationship are commonly used as the second dependency relationship.
  18. The apparatus of claim 16, wherein the third acquisition sub-module is further configured to:
    determining second dependent file information corresponding to the initial file information according to the sharing configuration information;
    and determining the second dependent file according to the second dependent file information.
  19. The apparatus of claim 18, wherein the third acquisition sub-module is further configured to:
    taking the dependent file to which the second dependent file information belongs as the second dependent file;
    taking the dependent file in the system module to which the second dependent file information belongs as the second dependent file;
    and taking the dependent file with a third dependency relationship with the dependent file to which the second dependent file information belongs as the second dependent file.
  20. The apparatus of claim 12, wherein the processing module is specifically configured to:
    compiling the initial file to which the initial file information belongs to obtain an initial compiled file;
    compiling the dependent file to which the dependent file information belongs to obtain a dependent compiled file;
    packaging the first system module to which the initial compiled file belongs to generate a first file resource package at a module level;
    and packaging the second system module to which the dependent compiling file belongs to generate a second file resource package at a module level.
  21. The apparatus of claim 20, wherein the processing module is further to:
    deleting a history compiling file corresponding to the initial file in the first system module;
    And deleting the historical compiling file corresponding to the dependent file in the second system module.
  22. The apparatus of claim 20, wherein the processing module is further to:
    constructing a target system according to the first file resource package, the second file resource package and the third file resource package;
    the third file resource package is a file resource package corresponding to a third system module, and the third system module, the first system module and the second system module do not have a dependency relationship.
  23. An electronic device, comprising:
    at least one processor; and
    a memory communicatively coupled to the at least one processor; wherein,
    the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the delta compilation processing method of any of claims 1-11.
  24. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are for causing the computer to perform the delta compilation processing method of any of claims 1-11.
CN202280004590.8A 2022-06-21 2022-06-21 Incremental compiling processing method and device, electronic equipment and storage medium Pending CN117616387A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/100242 WO2023245449A1 (en) 2022-06-21 2022-06-21 Incremental compilation processing method and apparatus, and electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN117616387A true CN117616387A (en) 2024-02-27

Family

ID=89378713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202280004590.8A Pending CN117616387A (en) 2022-06-21 2022-06-21 Incremental compiling processing method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN117616387A (en)
WO (1) WO2023245449A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8516437B2 (en) * 2010-01-22 2013-08-20 Ebay Inc. System and method for creating, managing, and reusing schema type definitions in services oriented architecture services, grouped in the form of libraries
CN106325970A (en) * 2016-10-17 2017-01-11 宁德时代新能源科技股份有限公司 Compiling method and compiling system
CN109240698B (en) * 2017-06-08 2021-11-23 中国移动通信集团浙江有限公司 Incremental compiling processing method and device
CN111796831B (en) * 2020-06-24 2023-02-28 苏州大学 Compiling method and device for multi-chip compatibility

Also Published As

Publication number Publication date
WO2023245449A1 (en) 2023-12-28

Similar Documents

Publication Publication Date Title
EP0785510B1 (en) Program debugging system for debugging a program having a graphical user interface
US5987250A (en) Transparent instrumentation for computer program behavior analysis
US9898387B2 (en) Development tools for logging and analyzing software bugs
CN106325970A (en) Compiling method and compiling system
US20060156287A1 (en) Auto conversion of tests between different functional testing tools
US20130239098A1 (en) Source code conversion method and source code conversion program
US20020091968A1 (en) Object-oriented data driven software GUI automated test harness
US20110126179A1 (en) Method and System for Dynamic Patching Software Using Source Code
US10423397B2 (en) Systems and/or methods for type inference from machine code
US8898649B2 (en) Application program analysis method, analysis system and recording medium for identifying a contributing factor for an invalid operation of an application program
CN115952758A (en) Chip verification method and device, electronic equipment and storage medium
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
US10839124B1 (en) Interactive compilation of software to a hardware language to satisfy formal verification constraints
CN114116505A (en) Code testing method and device
US20150020051A1 (en) Method and apparatus for automated conversion of software applications
US10318403B2 (en) Code update based on detection of change in runtime code during debugging
JP4702194B2 (en) Program development support apparatus, program development support method, and program development support program
CN117616387A (en) Incremental compiling processing method and device, electronic equipment and storage medium
US9645869B2 (en) Using exception information
CN110737431B (en) Software development method, development platform, terminal device and storage medium
CN114791885A (en) Interface test method, device, equipment and medium
US11392371B2 (en) Identification of a partial code to be refactored within a source code
JP6878707B2 (en) Test equipment, test methods and test programs
JP2005174045A (en) Source program conversion device, source program conversion method, source program conversion program and program recording medium
KR100916301B1 (en) Device and Method for Executing Kernel API Interactively

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination