CN107678748B - Source code file compiling method and device - Google Patents

Source code file compiling method and device Download PDF

Info

Publication number
CN107678748B
CN107678748B CN201710858365.1A CN201710858365A CN107678748B CN 107678748 B CN107678748 B CN 107678748B CN 201710858365 A CN201710858365 A CN 201710858365A CN 107678748 B CN107678748 B CN 107678748B
Authority
CN
China
Prior art keywords
source code
file
code file
compiling
compiler
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.)
Active
Application number
CN201710858365.1A
Other languages
Chinese (zh)
Other versions
CN107678748A (en
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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201710858365.1A priority Critical patent/CN107678748B/en
Publication of CN107678748A publication Critical patent/CN107678748A/en
Application granted granted Critical
Publication of CN107678748B publication Critical patent/CN107678748B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

The application provides a source code file compiling method, which comprises the following steps: acquiring compiling error information sent by a compiler; acquiring corresponding source code file information according to the compiling error information; deleting a compiling generation file corresponding to the source code file according to the source code file information under the condition that the compiling error information contains preset compiling information content and is generated by non-first compiling the source code file; and after deleting the compiling generated file corresponding to the source code file, calling a compiler to recompile the source code file. Compared with the prior art, the source code file with the error that the header file which the source code file depends on cannot be found is automatically recompiled, and the compiling efficiency is improved.

Description

Source code file compiling method and device
Technical Field
The present application relates to the field of computers, and in particular, to a source code file compiling method and apparatus.
Background
In a large development project, in order to facilitate uniform compilation of thousands of source code files therein, a common practice is to implement a compilation process by combining a compilation script with a Makefile, wherein the high-level language compilation process is generally divided into the following stages: preprocessing, compiling, assembling and linking. The source code file is preprocessed, compiled and assembled to generate an object file, and a plurality of object files are combined into a target file in a link stage. Organizing the compiling flow of each module in the project according to compiling parameters input by developers in a UNIX-like environment, calling a GCC tool (GNUCompiler Collection, programming language compiler) to compile the source code files of each module, and finally integrating the target files of each module into a unified target file; and the Makefile is a configuration file used with the GCC tool, and each module has an independent Makefile. And a developer calls a Make command in the compiling script to trigger compiling, wherein the Make command can search a Makefile under each module directory and execute the compiling process of the module according to the rule specified in the Makefile. The Make clear command is used for deleting each level of target files generated by the module through last compiling.
The problem of the existing scheme is that in the actual process of developing and maintaining the project, developers are not limited to modifying the content of the source code file and may modify the name of the header file, wherein the header file may depend on other header files. When the name of a source file which is dependent in a source code file is modified, or a new depended header file is added in the source file, the dependency relationship of the header file is changed, recompilation of the source code file is triggered according to the dependency relationship of an object file which is specified in advance by a Makefile on the source code file and the header file, at the moment, a compiler generates a compilation error because the source file with the modified header file name cannot be found, or the new depended header file added in the source file, and corresponding error information is given to a terminal interface. For example, when a header file B.h on which the header file A.h depends is renamed to a header file C.h, or when a newly added header file A.h is dependent on a header file D.h, if a certain xx.c source code file of the dependent header file A.h is not modified, according to a Makefile, according to a pre-specified object file, a dependency relationship between the xx.c source code file and the header file A.h, recompilation of the xx.c source code file is triggered, at this time, a compiler cannot find the header file B.h or the header file D.h, a compilation error occurs, and the dependency relationship between the header file A.h and the header file D.h is not updated in the object file.
In the prior art, a compiler is called to execute a preprocessing command on each source code file, namely on xx.c files, through a compiling script, namely, the source code file xx.c is preliminarily scanned, and the dependency relationship among annotations, macros, precompilation instructions and header files is processed to generate a primary target file xx.d; and generating a secondary target file xx.o file through a compiling stage and an assembling stage, acquiring a depended item of the secondary target file xx.o file from the primary target file xx.d as a depended item of the primary target file xx.d, and writing the depended item into a tertiary target file xx.dep file, wherein the depended item of the secondary target file xx.o file is a corresponding xx.c file and a list of all header files directly or indirectly dependent on the xx.c file.
The prior art scheme has the disadvantages that each time compiling is carried out, preprocessing needs to be carried out again for each xx.c file to generate a new primary target file xx.d, and then whether recompiling is needed to generate a corresponding secondary target file xx.o is judged according to the dependency relationship in the new primary target file xx.d. Although the influence on the compiling process is large when the public header file name of the basic module is modified or the dependency relationship of the public header file name on other header files is changed, the probability of the change is not high after all, and the efficiency of secondary compiling each time is reduced when compiling is carried out according to the prior art scheme.
Disclosure of Invention
In view of the above, the present invention provides a source code file compiling method and device.
Specifically, the invention is realized by the following technical scheme:
a method of source code file compilation, the method comprising:
acquiring compiling error information sent by a compiler;
acquiring corresponding source code file information according to the compiling error information;
deleting a compiling generation file corresponding to the source code file according to the source code file information under the condition that the compiling error information contains preset compiling information content and is generated by non-first compiling the source code file;
and after deleting the compiling generated file corresponding to the source code file, calling a compiler to recompile the source code file.
A source code file compilation apparatus, the apparatus comprising:
a compiling error information obtaining unit for obtaining compiling error information sent by a compiler;
a source code file information obtaining unit, configured to obtain corresponding source code file information according to the compiling error information;
a compiling generation file deleting unit, configured to delete a compiling generation file corresponding to the source code file according to the source code file information when the compiling error information includes preset compiling information content and the compiling error information is compiling error information generated by non-first-time compiling of the source code file;
and the recompilation unit is used for calling the compiler to recompile the source code file after deleting the compiling generation file corresponding to the source code file.
According to the method, the compiling error information is checked, if the compiling error information contains error information of a header file which a source code file depends on, a Make clear command is automatically executed to delete each level of target files generated by the source code file, then the Make command is executed to carry out compiling again, and the compiling is equivalent to the first compiling. Compared with the prior art, the method and the device have the advantages that the module with the compiling error of the header file which cannot be found can be automatically recompiled, and the compiling efficiency is improved.
Drawings
FIG. 1 is a diagram illustrating an application scenario in accordance with an exemplary embodiment of the present invention;
FIG. 2 is a flowchart illustrating one implementation of a source code file compilation method in accordance with an illustrative embodiment of the present invention;
FIG. 3 is a diagram illustrating an example embodiment of the present invention showing a change in the dependency of a source code file on a header file;
FIG. 4 is a flowchart illustrating a preferred implementation of a source code file compilation method in accordance with an illustrative embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating an architecture of a source code file compiling apparatus according to an exemplary embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a preferred structure of a source code file compiling apparatus according to an exemplary embodiment of the present invention.
Detailed Description
First, a source code file compiling method provided by an embodiment of the present invention is explained, where the method may include the following steps:
acquiring compiling error information sent by a compiler;
acquiring corresponding source code file information according to the compiling error information;
deleting a compiling generation file corresponding to the source code file according to the source code file information under the condition that the compiling error information contains preset compiling information content and is generated by non-first compiling the source code file;
and after deleting the compiling generated file corresponding to the source code file, calling a compiler to recompile the source code file.
In the source code file compiling process, compiling the source code file is not compiled for the first time, because a user may modify the name of a source file which is depended on in the source code file in advance or a header file which is depended on is newly added to the source file, in the source code file non-compiling process, a compiler can generate compiling error information, and the compiling error information sent by the compiler is obtained; acquiring corresponding source code file information from the compiling error information, for example, acquiring the name of a source code file, and knowing which source code file has a compiling error; if the compiling error information comprises error information of a header file which cannot be relied on by the source code file, deleting a compiling generated file corresponding to the source code file according to the source code file information; and after deleting the compiling generated file corresponding to the source code file, calling a compiler to recompile the source code file. According to the above description, we can obtain an application scenario diagram as shown in fig. 1, for example, the conventional xx1.c, xx2.c, and xx3.c source code files, a compilation script obtains compilation error information of a compiler on the source code file, and obtains source code file information from the compilation error information, that is, it is necessary to know which source code file is compiled wrongly, if the compilation error information includes error information that a header file dependent on the source code file cannot be found, the compiler is called to delete each level of object files corresponding to the source code file, and then the source code file is recompiled by the compiler.
After a compiler is called to recompile the source code file, if compiling error information sent by the compiler is obtained again, the compiling process of the source code file is stopped, if the compiling error information sent by the compiler obtained again contains error information which cannot find a header file which a source file depends on, warning information is sent, and the warning information is used for prompting a user that the source code file really has an error which cannot find the header file which the source file depends on.
In order that those skilled in the art will better understand the technical solutions of the present invention, exemplary embodiments will be described herein in detail, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims. All other embodiments that can be derived from the embodiments of the present invention by a person of ordinary skill in the art are intended to fall within the scope of the present invention.
Referring to fig. 2, it is a flowchart of an implementation of the source code file compiling method of the present invention, which specifically includes the following steps:
s101, acquiring compiling error information sent by a compiler;
the high-level language compilation process mentioned in the background is generally divided into the following stages: preprocessing, compiling, assembling and connecting. The method comprises the following steps that a preprocessing stage is used for preliminarily scanning a source code file, processing annotations, macros, precompiled instructions and header file dependency relations, and converting the source code file into xx.i files; the compiling stage is used for compiling the xx.i files generated in the preprocessing stage and generating a corresponding assembly file xx.s file for each source code file, and each assembly file comprises assembly codes generated by compiling the corresponding source code file; in the assembly stage, the assembly file is converted into a machine code, and an object file xx.o file is generated; the connection phase is to merge a plurality of object files of the same module into one target file. Compiling a source code file of a certain module for the first time, wherein only a source code file, a header file and a Makefile are compiled under a code directory of the module, and target files at all levels generated by compiling are not compiled; and performing secondary compilation on the source code file of the module, wherein the code directory of the module not only contains the source code file, the header file and the Makefile, but also contains part or all of all levels of target files generated by compilation. The difference of the secondary compilation compared with the primary compilation is that the secondary compilation utilizes each level of target files generated by the primary compilation, and judges the updating time of each file according to the dependency relationship of the specified source code file on the header file so as to determine whether the preprocessing, the compilation or the linking process needs to be executed again.
When the dependency relationship of the source code file on the header file mentioned in the background art is changed, the source code file is triggered to be recompiled, and at this time, a compiler generates a compiling error because the header file on which the source code file depends cannot be found, and corresponding error information is given to a terminal interface. For example, as shown in fig. 3, when a source code file xx.c. file depends on a header file A.h and a header file A.h depends on a header file B.h, and a header file B.h which a header file A.h depends on is renamed to a header file C.h, or when a newly added dependent header file D.h is added to a header file A.h, if the xx.c. source code file depending on the header file A.h is not modified, according to the dependency relationship between the xx.c. source code file and the header file A.h of a pre-specified object file, recompilation of the xx.c source code file is triggered, at this time, the compiler cannot find the header file B.h or the header file D.h and generates a compilation error, and the object file does not update the dependency relationship between the header file A.h and the header file D.h. At this time, the compiler sends the compiling error information to the invention, and the invention acquires the compiling error information sent by the compiler.
S102, acquiring corresponding source code file information according to the compiling error information;
in the present invention, by obtaining the compiling error information sent by the compiler, the relevant information corresponding to the source code file is obtained from the compiling error information, for example, the name of the source code file needs to be known, that is, it needs to be determined which source code file sent an error when compiling. The source code file information is determined, and all levels of target files generated according to source code file compiling are correspondingly determined. For example, the obtained compiling error information sent by the compiler can be known from the compiling error information that a source code file with a compiling error is an xx.c source code file, and accordingly, various levels of target files generated by compiling according to the xx.c source code file can also be determined, such as a first level target file xx.d file, a second level target file xx.o file and a third level target file xx.dep file.
S103, deleting a compiling generation file corresponding to the source code file according to the source code file information under the condition that the compiling error information contains preset compiling information content and is generated by non-first compiling the source code file;
and deleting a compiling generation file corresponding to the source code file, namely each level of target file, according to the source code file information under the condition that the obtained compiling error information sent by the compiler comprises error information which cannot find a header file which is depended by the source code file and the compiling error information is compiling error information generated by non-first compiling the source code file. When the source code file is subjected to non-first-time compiling and has an error, if the compiling error is a header file error which cannot be relied on by the source code file, deleting each level of target files corresponding to the source code file according to the source code file information. For example, a compiler performs non-primary compilation on a source code file xx.c, which may be a secondary compilation, wherein the source code file xx.c depends on a header file A.h, since a user renames a header file B.h on which a header file A.h depends to a header file C.h in advance, or when a header file A.h adds a depended header file D.h newly, if a xx.c source code file depending on a header file A.h is not modified, according to a dependency relationship between a xx.c source code file and a header file A.h of a Makefile according to a pre-specified object file, non-primary compilation on the xx.c source code file is triggered, at this time, the compiler cannot find the header file B.h or the header file D.h to generate a compilation error, the compilation error information acquired by the present invention includes header file B.h or the header file D.h error information on which the xx.c source code file cannot be found, and according to the source code file xx.c, all levels of target files generated corresponding to the source code file xx.c are deleted, for example, the first-level target files xx.d A second level target file xx.o file and a third level target file xx.dep file. The invention deletes the target files at all levels generated by the source code file xx.c by calling the compiler and executing the Make clear command in the compiler.
And S104, after deleting the compiling generation file corresponding to the source code file, calling a compiler to recompile the source code file.
According to the method, the compiler is called, after the target files at all levels generated by the source code file xx.c are deleted by executing the Make clear command in the compiler, the compiler is called to execute the Make command in the compiler to recompile the source code file, and at the moment, the compiling is equivalent to the first compiling. For example, after the target files of each level generated by the source code file xx.c are deleted by executing the Make clear command in the compiler, the source code file xx.c is recompiled by executing the Make command in the compiler, because the target files of each level corresponding to the source code file xx.c are deleted, the compiling of the source code file xx.c at this time is equivalent to the first compiling, and then when any compiling error occurs, the compiling error information sent by the compiler is obtained again.
In the preferred embodiment of the present invention, a recompilation error handling mechanism may be further added after S104, as shown in fig. 4.
And S105, calling the compiler to recompile the source code file, and stopping the compiling process of the source code file if compiling error information sent by the compiler is obtained again.
After a source code file is recompiled, if compiling error information sent by a compiler is obtained again, the compiling process of the source code file is stopped, the compiling error information is recorded, if the compiling error information sent by the compiler obtained again contains error information which cannot find a header file which a source file depends on, warning information is sent, and the warning information is used for prompting a user that the source code file really has an error which cannot find the header file which the source file depends on. Generally, if the dependency relationship of a source code file on a header file is changed, a recompilation of the source code file is triggered, and a compiler generates a compilation error, the source code file with the compilation error of the header file which cannot be relied on by the source code file is automatically compiled by adopting the technical scheme of the invention, but after the generated target files of all levels corresponding to the source code file are deleted according to the technical scheme of the invention, the compilation error occurs again when the source code file is recompiled, and the compilation error is an error which cannot find the header file which is relied on by the source code file, a warning message is sent out, and the warning message is used for prompting a user that the source code file actually has an error which cannot find the header file which is relied on by the source code file. Because the first time the error of finding the header file which the source code file depends on is processed, it is not determined whether the error is triggered by the change of the dependency relationship of the source code file on the header file or by the header file not being added in the compiling process of the source code file.
If the source code file xx.c is wrongly compiled, the compiling error is that the header file A.h on which the source code file xx.c depends cannot be found, the source code file can be automatically recompiled by adopting the technical scheme of the invention, and if the source code file is successfully recompiled, the dependency relationship of the source code file xx.c on the header file A.h can be considered to be changed; if the recompilation of the source code file fails, the obtained recompilation error information contains header A.h error information which cannot be used for finding the source code file xx.c dependence, it can be considered that the header A.h is not added in the process of compiling the source code file xx.c to trigger, the compiling process of the source code file xx.c is stopped, and a user is reminded to modify the source code file to solve the error.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Corresponding to the implementation flow chart of the source code file compiling method, the invention also provides an embodiment of a source code file compiling device. Referring to fig. 5, the apparatus includes a compilation error information obtaining unit 210, a source code file information obtaining unit 220, a compilation generation file deleting unit 230, and a recompilation unit 240.
The compiling error information obtaining unit 210 is configured to obtain compiling error information sent by a compiler, and send the obtained compiling error information to the source code file information obtaining unit 220;
the source code file information obtaining unit 220 is configured to obtain corresponding source code file information according to the compiling error information, and send the obtained source code file information to the compiling generation file deleting unit 230;
the compiling generated file deleting unit 230 is configured to delete a compiling generated file corresponding to the source code file according to the source code file information when the compiling error information includes preset compiling information content and the compiling error information is compiling error information generated by non-first-time compiling of the source code file;
the recompilation unit 240 is configured to call the compiler to recompile the source code file after deleting the compilation generated file corresponding to the source code file.
In an embodiment of the present invention, the compiling generation file deleting unit 230 may be specifically configured to:
and deleting the compiling generated file corresponding to the source code file according to the source code file information under the condition that the compiling error information contains error information that a header file which the source file depends on cannot be found and the compiling error information is compiling error information generated by non-first compiling the source code file.
In an embodiment of the present invention, the recompilation unit 240 may be further configured to:
and after the compiler is called to recompile the source code file, if the compiling error information sent by the compiler is obtained again, the compiling process of the source code file is stopped.
Referring to fig. 6, the source code file compiling apparatus according to the embodiment of the present invention may further include:
a warning unit 250, configured to, if the obtained compilation error information sent by the compiler again includes error information that a header file that a source file depends on cannot be found, send warning information, where the warning information is used to prompt a user that the source code file actually has an error that a header file that a source file depends on cannot be found.
The implementation process of the functions of each unit in the system is specifically described in the implementation process of the corresponding step in the method, and is not described herein again.
For the system embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment for relevant points. The above-described system embodiments are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The foregoing is directed to embodiments of the present invention, and it is understood that various modifications and improvements can be made by those skilled in the art without departing from the spirit of the invention.

Claims (6)

1. A source code file compiling method is characterized in that the method is applied to a development project containing a plurality of source code files, and when a compiler compiles the source code files for the first time aiming at each source code file, a compiling generated file corresponding to the source code file is generated based on the dependency relationship between the source code file and the source code file on header files; for any source code file, if the header file name of the source code file changes or a new header file is added to the source code file, so that the dependency relationship of the source code file on the header file changes, triggering the compiler to perform secondary compilation on the source code file, wherein the secondary compilation on the source code file is performed according to a compilation generation file corresponding to the source code file, and the method comprises the following steps:
acquiring compiling error information sent out by the compiler during secondary compiling;
determining an error source code file according to error information which is contained in the compiling error information and can not find a header file on which a source file depends;
deleting the compiling generation file corresponding to the source code file with the error;
and calling a compiler to re-compile the source code file with the error for the first time.
2. The method of claim 1, further comprising:
and after calling the compiler to re-compile the source code file with the error for the first time, if the compiling error information sent by the compiler is obtained again, stopping the compiling process of the source code file.
3. The method of claim 2, further comprising:
and if the obtained compiling error information sent by the compiler again contains error information which can not find the header file which the source file depends on, sending out warning information, wherein the warning information is used for prompting a user that the source code file really has an error which can not find the header file which the source file depends on.
4. A source code file compiling device is characterized in that the source code file compiling device is applied to a development project comprising a plurality of source code files, and when a compiler compiles the source code files for the first time aiming at each source code file, a compiling generation file corresponding to the source code file is generated based on the dependency relationship between the source code file and the source code file on header files; for any source code file, if the header file name of the source code file changes or a new header file is added to the source code file, so that the dependency relationship of the source code file on the header file changes, triggering the compiler to perform secondary compilation on the source code file, wherein the secondary compilation on the source code file is performed according to a compilation generation file corresponding to the source code file, and the device comprises:
a compiling error information obtaining unit, configured to obtain compiling error information sent by the compiler when performing secondary compiling;
a source code file information obtaining unit, configured to determine an erroneous source code file according to error information that is included in the compilation error information and in which a header file on which a source file depends cannot be found;
a compiling generation file deleting unit, configured to delete the compiling generation file corresponding to the erroneous source code file;
and the recompilation unit is used for calling a compiler to recompile the source code file with the error.
5. The apparatus of claim 4, wherein the recompilation unit is further configured to:
and after calling the compiler to re-compile the source code file with the error for the first time, if the compiling error information sent by the compiler is obtained again, stopping the compiling process of the source code file.
6. The apparatus of claim 4, further comprising: a warning unit;
the warning unit is configured to send warning information if the obtained compiling error information sent by the compiler again includes error information that a header file on which the source file depends cannot be found, where the warning information is used to prompt a user that the source code file actually has an error that the header file on which the source file depends cannot be found.
CN201710858365.1A 2017-09-21 2017-09-21 Source code file compiling method and device Active CN107678748B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710858365.1A CN107678748B (en) 2017-09-21 2017-09-21 Source code file compiling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710858365.1A CN107678748B (en) 2017-09-21 2017-09-21 Source code file compiling method and device

Publications (2)

Publication Number Publication Date
CN107678748A CN107678748A (en) 2018-02-09
CN107678748B true CN107678748B (en) 2020-05-12

Family

ID=61136714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710858365.1A Active CN107678748B (en) 2017-09-21 2017-09-21 Source code file compiling method and device

Country Status (1)

Country Link
CN (1) CN107678748B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614106B (en) * 2018-12-21 2022-04-19 北京龙创悦动网络科技有限公司 C + + program compiling method and device
CN109740127B (en) * 2019-01-08 2023-05-26 武汉益模科技股份有限公司 Unordered disassembly and assembly method based on three-dimensional model
CN109918082B (en) * 2019-03-06 2022-02-22 驿涛科技股份有限公司 Compiling system and method for software development
CN110377276B (en) * 2019-07-19 2023-05-23 潍柴动力股份有限公司 Source code file management method and device
CN110908666B (en) * 2019-10-31 2022-03-22 北京浪潮数据技术有限公司 Source code sharing management method, device, equipment and computer storage medium
WO2021142763A1 (en) * 2020-01-17 2021-07-22 上海渠杰信息科技有限公司 Method for automatically identifying cause of compilation failure and restarting compilation
CN111475196B (en) * 2020-03-30 2023-12-12 杭州迪普信息技术有限公司 Compiling alarm tracing method and device, electronic equipment and computer readable medium
CN112631599B (en) * 2020-12-09 2024-03-19 潍柴动力股份有限公司 Compiling method, compiling device and storage medium
CN114035805A (en) * 2021-11-16 2022-02-11 北京字节跳动网络技术有限公司 Code conversion method, apparatus, medium, and device for pre-compiler

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799437A (en) * 2012-07-18 2012-11-28 清华大学 Automatic generating method and device of compiling script
KR20130063757A (en) * 2011-12-07 2013-06-17 한국과학기술연구원 Method for transforming intermediate language, system and computer-readable recording medium with program therefor
CN105335137A (en) * 2014-07-23 2016-02-17 国际商业机器公司 Method and device used for processing source file

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130063757A (en) * 2011-12-07 2013-06-17 한국과학기술연구원 Method for transforming intermediate language, system and computer-readable recording medium with program therefor
CN102799437A (en) * 2012-07-18 2012-11-28 清华大学 Automatic generating method and device of compiling script
CN105335137A (en) * 2014-07-23 2016-02-17 国际商业机器公司 Method and device used for processing source file

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"Makefile经典教程(一个很棒很清晰的讲解)";Seven_Amber;《CSDN》;20170417;第1-5、11-14页 *

Also Published As

Publication number Publication date
CN107678748A (en) 2018-02-09

Similar Documents

Publication Publication Date Title
CN107678748B (en) Source code file compiling method and device
US8996349B2 (en) Synchronizing an abstract model and source code
US10489274B2 (en) Using emulation to disassociate verification from stimulus in functional test
JP5396979B2 (en) Software development support device, system, software development support device function expansion method, and program
CN109032631B (en) Application program patch package obtaining method and device, computer equipment and storage medium
US20200034282A1 (en) Object-oriented regression-candidate filter
CN110673837B (en) Code repairing method and device, electronic equipment and computer readable storage medium
CN113342323B (en) Method and device for online development of software
US8479177B2 (en) Attribute based method redirection
CN112419057A (en) Method, device, equipment and storage medium for generating and storing logs of intelligent contracts
Fazzini et al. Apimigrator: an api-usage migration tool for android apps
CN113535141A (en) Database operation code generation method and device
CN114115884B (en) Method and related device for managing programming service
CN106909434B (en) Method and device for detecting undefined function in executable program
CN108304164B (en) Business logic development method and development system
CN113360156B (en) IOS compiling method and related equipment
CN114721647B (en) Object-oriented programming method based on codeless application development
CN110750310A (en) Binary and source code switching method based on IOS system componentization development
CN107451050B (en) Function acquisition method and device and server
US9389838B2 (en) Method for creating a computer software compiler for client server computing
CN117093286B (en) Plug-in generation method, device, equipment and computer readable storage medium
CN112882720B (en) Compiling method and device
Wu Modeling framework API evolution as a multi-objective optimization problem
CN116955104A (en) Automatic point burying method, device, electronic equipment and readable storage medium
CN114327396A (en) Method for developing Andriod system application by deviating from source code compiling environment

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
GR01 Patent grant
GR01 Patent grant