A method and apparatus for compiling
By obtaining the dependency description and attribute information of the target code, determining the compilation identifier, and querying the database for matching compilation artifacts, the problem of wasted computing resources caused by repeated compilation is solved, and an efficient compilation process is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-05
- Publication Date
- 2026-03-03
AI Technical Summary
In the application development process, repeatedly compiling a large amount of code leads to a waste of computing resources. Furthermore, in collaborative development, repeated compilation of the same code by different developers results in both resource waste and inefficiency.
By obtaining the dependency description and attribute information of the target code, the compilation identifier is determined, and matching compilation artifacts are queried from the database, thus avoiding direct compilation of the target code and using the dependency description and attribute information to match the compilation artifacts.
It saves computing resources, improves the efficiency of obtaining compilation output, and reduces the need for repeated compilation.
Smart Images

Figure CN114356342B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and more specifically, to a compilation method and apparatus. Background Technology
[0002] Compilation is the process of using a compiler to generate an object program from a source program written in a source language; that is, the process of converting the source language into binary language that a computer can understand. During application development, developers continuously modify the application's source code. Correspondingly, each modification requires compiling the modified source code—and this must be a full compilation—before the modified application can be tested. However, in most cases, modifications only involve a small portion of the source code, resulting in a large amount of source code being repeatedly compiled. Furthermore, in scenarios where multiple developers collaborate on application development, different developers may compile the same code separately, leading to a significant waste of computing resources. Summary of the Invention
[0003] This disclosure provides at least one compilation method and apparatus.
[0004] In a first aspect, embodiments of this disclosure provide a compilation method, including:
[0005] Obtain the target code to be compiled, and determine the dependency description information required to compile the target code;
[0006] Based on the dependency description information and the attribute information of the target code, the compilation identifier of the target code is determined;
[0007] The database is queried for compilation artifacts that match the compilation identifier, and the queried compilation artifacts are used as the compilation result of the target code.
[0008] In one optional implementation, determining the compilation identifier of the target code based on dependency description information and attribute information of the target code includes:
[0009] Based on the dependency description information and the attribute information of the target code, determine the hash value corresponding to the dependency description information and the attribute information;
[0010] The determined hash value is used as the compilation identifier for the target code.
[0011] In one optional implementation, determining the dependency description information required to compile the target code includes:
[0012] The target code is pre-compiled to obtain a dependency description file for the target code; the dependency description file contains header file information of each dependency required to compile the target code;
[0013] The header file information in the dependency description file is used as the dependency description information.
[0014] In one optional implementation, the attribute information of the target code includes at least one of the following:
[0015] The target code's ontology file, header file, compiler version, and environment variables.
[0016] In one optional implementation, the method further includes:
[0017] If no compilation artifact matching the compilation identifier exists in the database, the compiler corresponding to the target code is invoked to compile the target code, and the compilation result of the target code is obtained.
[0018] In one optional implementation, the method further includes:
[0019] The compilation result obtained from the compilation is stored in the database as a compilation artifact that matches the compilation identifier.
[0020] In one optional implementation, querying the database for compilation artifacts that match the compilation identifier includes:
[0021] Retrieve the compilation artifacts that match the compilation identifier from the local database; or,
[0022] A query request for the compilation identifier is sent to the server corresponding to the remote database, so that the server queries the database and returns the compilation artifact that matches the compilation identifier.
[0023] Secondly, embodiments of this disclosure also provide a compilation apparatus, comprising:
[0024] The acquisition module is used to acquire the target code to be compiled and determine the dependency description information required to compile the target code;
[0025] The determination module is used to determine the compilation identifier of the target code based on dependency description information and attribute information of the target code;
[0026] The query module is used to query the database for compilation artifacts that match the compilation identifier, and use the queried compilation artifacts as the compilation result of the target code.
[0027] In one optional implementation, the determining module is specifically used for:
[0028] Based on the dependency description information and the attribute information of the target code, determine the hash value corresponding to the dependency description information and the attribute information;
[0029] The determined hash value is used as the compilation identifier for the target code.
[0030] In one optional implementation, when determining the dependency description information required to compile the target code, the acquisition module is used to:
[0031] The target code is pre-compiled to obtain a dependency description file for the target code; the dependency description file contains header file information of each dependency required to compile the target code;
[0032] The header file information in the dependency description file is used as the dependency description information.
[0033] In one optional implementation, the attribute information of the target code includes at least one of the following:
[0034] The target code's ontology file, header file, compiler version, and environment variables.
[0035] In one optional implementation, the apparatus further includes a compilation module for:
[0036] If no compilation artifact matching the compilation identifier exists in the database, the compiler corresponding to the target code is invoked to compile the target code, and the compilation result of the target code is obtained.
[0037] In one optional implementation, the compilation module is further configured to:
[0038] The compilation result obtained from the compilation is stored in the database as a compilation artifact that matches the compilation identifier.
[0039] In one optional implementation, when the query module queries the database for compilation artifacts that match the compilation identifier, it is used to:
[0040] Retrieve the compilation artifacts that match the compilation identifier from the local database; or,
[0041] A query request for the compilation identifier is sent to the server corresponding to the remote database, so that the server queries the database and returns the compilation artifact that matches the compilation identifier.
[0042] Thirdly, embodiments of this disclosure also provide an electronic device, including: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory via the bus, and when the machine-readable instructions are executed by the processor, the steps of the first aspect above, or any possible implementation of the first aspect, are performed.
[0043] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium storing a computer program that, when executed by a processor, performs the steps of the first aspect or any possible implementation of the first aspect.
[0044] The compilation method and apparatus provided in this disclosure first obtain the target code to be compiled and determine the dependency description information required to compile the target code; then, based on the dependency description information and the attribute information of the target code, determine the compilation identifier of the target code; finally, query the database for compilation products that match the compilation identifier, and use the queried compilation products as the compilation result of the target code. This disclosure matches compilation products using dependency description information and the attribute information of the target code, and uses the matched compilation products as the compilation result of the target code, thus eliminating the need to compile the target code, achieving the effect of saving computing resources. Furthermore, since no compilation of the target code is required, the efficiency of obtaining compilation products is also improved.
[0045] To make the above-mentioned objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0046] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings used in the embodiments will be briefly described below. These drawings are incorporated in and constitute a part of this specification. They illustrate embodiments conforming to this disclosure and, together with the specification, serve to explain the technical solutions of this disclosure. It should be understood that the following drawings only show some embodiments of this disclosure and should not be considered as limiting the scope. Those skilled in the art can obtain other related drawings based on these drawings without creative effort.
[0047] Figure 1 A flowchart of a compilation method provided by an embodiment of this disclosure is shown;
[0048] Figure 2 A flowchart of another compilation method provided by an embodiment of this disclosure is shown;
[0049] Figure 3 A schematic diagram of a compilation apparatus provided in an embodiment of this disclosure is shown;
[0050] Figure 4 A schematic diagram of an electronic device provided in an embodiment of this disclosure is shown. Detailed Implementation
[0051] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. The components of the embodiments of this disclosure described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.
[0052] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0053] In this document, the term "and / or" merely describes a relationship, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" in this document means any combination of at least two of any one or more elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.
[0054] To address the technical problem of wasted computing resources caused by repeatedly compiling large amounts of code, this disclosure provides a compilation method that matches compilation artifacts with dependency description information and target code attribute information, and uses the matched compilation artifacts as the compilation result of the target code. This eliminates the need to compile the target code, thus saving computing resources. Furthermore, since the target code does not need to be compiled, the efficiency of obtaining compilation artifacts is also improved.
[0055] To facilitate understanding of this embodiment, a compilation method disclosed in this disclosure will first be described in detail. The execution subject of the compilation method provided in this disclosure is generally a computer device with certain computing capabilities, such as a terminal device, a server, or other processing devices. In some possible implementations, this compilation method can be implemented by the processor calling computer-readable instructions stored in memory.
[0056] See Figure 1 The diagram shows a flowchart of a compilation method provided in an embodiment of this disclosure. The method includes steps S101 to S103, wherein:
[0057] S101. Obtain the target code to be compiled and determine the dependency description information required to compile the target code.
[0058] In this step, the target code to be compiled can be the complete code of an application or a portion of it. Compiling the target code usually also requires information about the files the target code depends on. Different dependent files will result in different executable files. Therefore, the dependency description information required to compile the target code can be determined.
[0059] For example, the target code can be pre-compiled, compiling only the code related to dependent files within the target code. This generates the actual dependency files for the files corresponding to the current target code. The target code files can be .cpp files, which are files directly written by developers. The actual dependency files can be .d files, i.e., dependency description files. These dependency description files can contain header file information for each dependency required to compile the target code. Extracting this header file information from the dependency description file allows it to be used as dependency description information. These header files can be .h files.
[0060] S102. Based on the dependency description information and the attribute information of the target code, determine the compilation identifier of the target code.
[0061] In this step, the compilation identifier of the target code can be determined by using the obtained dependency description information and the attribute information of the target code. The compilation identifier can be a unique identifier of the target code and can reflect the dependency description information and attribute information of the target code. If the compilation identifiers of two pieces of code are exactly the same, then the two pieces of code can be considered to be exactly the same, and the compilation products of the two can be used interchangeably.
[0062] The attribute information of the target code may include at least one of the following:
[0063] The target code's body file, header file, compiler version, and environment variables.
[0064] The aforementioned attribute information and dependency description information all describe the characteristics of the target code and the compilation process to a certain extent. For example, the ontology file contains the code that needs to be compiled, the header file can describe each part of the target code, the compiler version affects the compilation process, and environment variables also affect the compilation process and compilation output.
[0065] For example, the compilation identifiers of the target code can be determined through the following steps:
[0066] Based on the dependency description information and the attribute information of the target code, determine the hash value corresponding to the dependency description information and the attribute information;
[0067] The determined hash value is used as the compilation identifier for the target code.
[0068] In this step, hash values of dependency description information and attribute information of target code are calculated. The hash value itself represents the characteristics of the information. Using hash values to identify the characteristics of dependency description information and attribute information can also represent the characteristics of target code and compilation process.
[0069] S103. Query the database for compilation artifacts that match the compilation identifier, and use the queried compilation artifacts as the compilation result of the target code.
[0070] After determining the compilation identifier of the target code, the database can be queried to find compilation artifacts that match the compilation identifier. The compilation artifacts in the database can be compilation artifacts stored after compilation on the local machine or other terminal devices. The compilation artifacts can carry the compilation identifier of their corresponding source code. By comparing the target code with the compilation identifiers of each compilation artifact, a match can be made. If the compilation identifiers of the two are the same, it can be determined that the source code and compilation process of the compilation artifact are the same as the target code, and the compilation artifacts can be used interchangeably. The queried compilation artifacts can be used as the compilation result of the target code.
[0071] The aforementioned database can be a local database or a remote database, such as a distributed cache database or a cloud cache database. A query request targeting a compilation identifier can be sent to the remote database. The remote database can then perform a query and match of the compilation artifacts based on the compilation identifier indicated in the query request and return the retrieved compilation artifacts.
[0072] Furthermore, if no compilation artifacts matching the compilation identifiers of the target code are found in the database, the local compiler can be invoked to compile the target code and obtain the compilation result.
[0073] After compilation is complete, the compilation results and compilation identifiers can be stored in the database for use when compiling the target code again.
[0074] See Figure 2 As shown, another compilation method provided by this disclosure embodiment is implemented. The method first executes the packaging instruction xcodebuild on the computer device. The computer device may be running a Continuous Integration (CI) system. xcodebuild is the instruction in the Xcode integrated development tool under the CI system. Normally, the Xcode tool can only use the local cache. By modifying its default compiler clang and replacing it with a compiler dedicated to the remote database, the compilation artifacts stored in the remote database can be obtained. After running the packaging instruction, the computer device can call the compiler corresponding to the remote processor to determine the compilation identifier of the target code. Then, it searches for compilation artifacts that match the compilation identifier from the local database and / or the remote database. If a match is found, the matching compilation artifact is obtained and used as the compilation result of the target code. If no match is found, the compilation logic is executed to compile the target code.
[0075] The compilation method provided in this disclosure first obtains the target code to be compiled and determines the dependency description information required to compile the target code; then, based on the dependency description information and the attribute information of the target code, it determines the compilation identifier of the target code; finally, it queries the database for compilation artifacts that match the compilation identifier and uses the queried compilation artifacts as the compilation result of the target code. This disclosure matches compilation artifacts using dependency description information and the attribute information of the target code, and uses the matched compilation artifacts as the compilation result of the target code, thus eliminating the need to compile the target code, achieving the effect of saving computing resources. Furthermore, since no compilation of the target code is required, it also improves the efficiency of obtaining compilation artifacts.
[0076] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.
[0077] Based on the same inventive concept, this disclosure also provides a compilation device corresponding to the compilation method. Since the principle of the device in this disclosure for solving the problem is similar to the compilation method described above in this disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0078] Reference Figure 3The diagram shown is a schematic representation of a compilation apparatus provided in an embodiment of this disclosure. The apparatus includes:
[0079] The acquisition module 310 is used to acquire the target code to be compiled and determine the dependency description information required to compile the target code;
[0080] The determination module 320 is used to determine the compilation identifier of the target code based on the dependency description information and the attribute information of the target code;
[0081] The query module 330 is used to query the database for compilation artifacts that match the compilation identifier, and use the queried compilation artifacts as the compilation result of the target code.
[0082] In one optional implementation, the determining module 320 is specifically used for:
[0083] Based on the dependency description information and the attribute information of the target code, determine the hash value corresponding to the dependency description information and the attribute information;
[0084] The determined hash value is used as the compilation identifier for the target code.
[0085] In an optional implementation, when determining the dependency description information required to compile the target code, the acquisition module 310 is used to:
[0086] The target code is pre-compiled to obtain a dependency description file for the target code; the dependency description file contains header file information of each dependency required to compile the target code;
[0087] The header file information in the dependency description file is used as the dependency description information.
[0088] In one optional implementation, the attribute information of the target code includes at least one of the following:
[0089] The target code's ontology file, header file, compiler version, and environment variables.
[0090] In one optional implementation, the apparatus further includes a compilation module for:
[0091] If no compilation artifact matching the compilation identifier exists in the database, the compiler corresponding to the target code is invoked to compile the target code, and the compilation result of the target code is obtained.
[0092] In one optional implementation, the compilation module is further configured to:
[0093] The compilation result obtained from the compilation is stored in the database as a compilation artifact that matches the compilation identifier.
[0094] In an optional implementation, when the query module 330 queries the database for compilation artifacts that match the compilation identifier, it is used to:
[0095] Retrieve the compilation artifacts that match the compilation identifier from the local database; or,
[0096] A query request for the compilation identifier is sent to the server corresponding to the remote database, so that the server queries the database and returns the compilation artifact that matches the compilation identifier.
[0097] The processing flow of each module in the device and the interaction flow between each module can be referred to the relevant descriptions in the above method embodiments, and will not be detailed here.
[0098] Corresponding to Figure 1 In addition to the compilation method described in the present disclosure, this embodiment also provides an electronic device 400, such as... Figure 4 The diagram shown is a structural schematic of an electronic device 400 provided in an embodiment of this disclosure, including:
[0099] The system includes a processor 41, a memory 42, and a bus 43. The memory 42 stores execution instructions and includes main memory 421 and external memory 422. The main memory 421, also called internal memory, temporarily stores the computational data in the processor 41, as well as data exchanged with external memory such as a hard disk. The processor 41 exchanges data with the external memory 422 through the main memory 421. When the electronic device 400 is running, the processor 41 communicates with the memory 42 through the bus 42, causing the processor 41 to execute the following instructions:
[0100] Obtain the target code to be compiled, and determine the dependency description information required to compile the target code;
[0101] Based on the dependency description information and the attribute information of the target code, the compilation identifier of the target code is determined;
[0102] The database is queried for compilation artifacts that match the compilation identifier, and the queried compilation artifacts are used as the compilation result of the target code.
[0103] In an optional implementation, the step of determining the compilation identifier of the target code based on dependency description information and attribute information of the target code in the instructions executed by the processor 41 includes:
[0104] Based on the dependency description information and the attribute information of the target code, determine the hash value corresponding to the dependency description information and the attribute information;
[0105] The determined hash value is used as the compilation identifier for the target code.
[0106] In one optional implementation, the instructions executed by the processor 41, wherein determining the dependency description information required to compile the target code, includes:
[0107] The target code is pre-compiled to obtain a dependency description file for the target code; the dependency description file contains header file information of each dependency required to compile the target code;
[0108] The header file information in the dependency description file is used as the dependency description information.
[0109] In one optional implementation, the attribute information of the target code in the instructions executed by the processor 41 includes at least one of the following:
[0110] The target code's ontology file, header file, compiler version, and environment variables.
[0111] In an optional implementation, the processor 41 is further configured to perform:
[0112] If no compilation artifact matching the compilation identifier exists in the database, the compiler corresponding to the target code is invoked to compile the target code, and the compilation result of the target code is obtained.
[0113] In an optional implementation, the processor 41 is further configured to perform:
[0114] The compilation result obtained from the compilation is stored in the database as a compilation artifact that matches the compilation identifier.
[0115] In one optional implementation, the instruction executed by the processor 41, wherein querying the database for a compilation artifact matching the compilation identifier, includes:
[0116] Retrieve the compilation artifacts that match the compilation identifier from the local database; or,
[0117] A query request for the compilation identifier is sent to the server corresponding to the remote database, so that the server queries the database and returns the compilation artifact that matches the compilation identifier.
[0118] This disclosure also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the compilation method described in the above method embodiments. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0119] This disclosure also provides a computer program product carrying program code. The program code includes instructions that can be used to execute the steps of the compilation method described in the above method embodiments. For details, please refer to the above method embodiments, which will not be repeated here.
[0120] The aforementioned computer program product can be implemented through hardware, software, or a combination thereof. In one optional embodiment, the computer program product is specifically embodied in a computer storage medium; in another optional embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.
[0121] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here. In the several embodiments provided in this disclosure, it should be understood that the disclosed device and method can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.
[0122] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0123] In addition, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0124] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0125] Finally, it should be noted that the above-described embodiments are merely specific implementations of this disclosure, used to illustrate the technical solutions of this disclosure, and not to limit it. The protection scope of this disclosure is not limited thereto. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this disclosure. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure, and should all be covered within the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be determined by the protection scope of the claims.
Claims
1. A method of compiling, characterized by, The method comprises the following steps: acquiring target code to be compiled and determining dependency description information required for compiling the target code; determining a compilation identifier of the target code based on the dependency description information and attribute information of the target code, wherein the attribute information of the target code and the dependency description information describe characteristics of the target code and a compilation process, and the attribute information of the target code comprises at least one of the following: a body file of the target code, a header file of the target code, a compiler version corresponding to the target code, and an environment variable corresponding to the target code; sending a query request for the compilation identifier to a server corresponding to a remote database, so that the server queries and feeds back a compilation product matching the compilation identifier from the remote database, and taking the compilation product fed back by the server as a compilation result of the target code, wherein the same compilation identifier indicates that the source code of the compilation product and the compilation process are the same.
2. The method of claim 1, wherein, The step of determining the compilation identifier of the target code based on the dependency description information and the attribute information of the target code comprises the following steps: determining a hash value corresponding to the dependency description information and the attribute information based on the dependency description information and the attribute information of the target code; and taking the determined hash value as the compilation identifier of the target code.
3. The method according to claim 1 or 2, characterized in that, The step of determining the dependency description information required for compiling the target code comprises the following steps: performing pre-compilation processing on the target code to obtain a dependency description file of the target code, wherein the dependency description file contains header file information of each dependency required for compiling the target code; and taking each header file information in the dependency description file as the dependency description information.
4. The method of claim 1, wherein, The method further comprises the following steps: if the database does not contain a compilation product matching the compilation identifier, invoking a compiler corresponding to the target code to compile the target code and obtaining a compilation result of the target code.
5. The method of claim 4, wherein, The method further comprises the following steps: storing the compilation result obtained by the compilation as a compilation product matching the compilation identifier in the database.
6. A compiling apparatus characterized by comprising: The method comprises the following steps: an acquiring module, configured to acquire target code to be compiled and determine dependency description information required for compiling the target code; a determining module, configured to determine a compilation identifier of the target code based on the dependency description information and attribute information of the target code, wherein the attribute information of the target code and the dependency description information describe characteristics of the target code and a compilation process, and the attribute information of the target code comprises at least one of the following: a body file of the target code, a header file of the target code, a compiler version corresponding to the target code, and an environment variable corresponding to the target code; a querying module, configured to send a query request for the compilation identifier to a server corresponding to a remote database, so that the server queries and feeds back a compilation product matching the compilation identifier from the remote database, and take the compilation product fed back by the server as a compilation result of the target code, wherein the same compilation identifier indicates that the source code of the compilation product and the compilation process are the same.
7. An electronic device, comprising: The method comprises the following steps: A processor, a memory, and a bus, the memory storing machine readable instructions executable by the processor, the processor in communication with the memory via the bus when the electronic device is running, the machine readable instructions, when executed by the processor, performing the steps of the compiling method of any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, A computer readable storage medium storing a computer program, the computer program, when executed by a processor, performing the steps of the compiling method of any one of claims 1 to 5.
Citation Information
Patent Citations
Compiled file management method and device, compiled file calling method and device and electronic equipment
CN112748931A