CN107678748A - A kind of source code file Compilation Method and device - Google Patents
A kind of source code file Compilation Method and device Download PDFInfo
- Publication number
- CN107678748A CN107678748A CN201710858365.1A CN201710858365A CN107678748A CN 107678748 A CN107678748 A CN 107678748A CN 201710858365 A CN201710858365 A CN 201710858365A CN 107678748 A CN107678748 A CN 107678748A
- Authority
- CN
- China
- Prior art keywords
- file
- source code
- code file
- compiling
- information
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
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 kind of source code file Compilation Method, and methods described includes:Obtain the compile error information that compiler is sent;According to source code file information corresponding to the compile error acquisition of information;It is in the case of non-compile error information caused by compiling first is carried out to the source code file that the default compiling information content and the compile error information are included in the compile error information, according to the source code file information, compiling generation file corresponding to source code file is deleted;After compiling generation file corresponding to source code file is deleted, compiler is called to re-start compiling to the source code file.Compared with prior art, it can automatically recompilate there occurs the wrong source code file for the header file that can not find source code file dependence, improve compiling efficiency.
Description
Technical field
The application is related to computer realm, more particularly to a kind of source code file Compilation Method and device.
Background technology
In large-scale exploration project, Uniform compilation is carried out for convenience of to wherein thousands of individual source code files, is generally done
Method is that compilation process is realized by way of compilation script and Makefile files combine, and wherein high-level language compilation process is general
It is divided into such as the next stage:Pretreatment, compiling, compilation, link.Pretreatment, compiling, compilation process process have been carried out to source code file
Obj ect file is generated later, several obj ect files are merged into a file destination by the link stage.In class unix environment,
The compiling flow of each module in the compiling parameter tissue project inputted according to developer, calling GCC instruments (GNU
Compiler Collection, programming language compiler) source code file of each module is compiled, most each module at last
File destination be integrated into a unified file destination;And Makefile files are the configuration files for coordinating GCC instruments to use,
Each module has an independent Makefile file.Developer in compilation script by calling Make command triggers to compile
Translate, Make orders can find Makefile files under each module directory and be performed by the fixed rule of Makefile documents and are somebody's turn to do
The compilation process of module.Make Clean orders are then used for the file destinations at different levels for deleting the compiling generation of module last time.
The problem of existing scheme is to be, during actual development Maintenance Significant Items, developer is not limited to modification source
The content of code file, it is possible to change header file title, wherein header file is also possible to rely on other header files.Work as modification
During the title of the source file relied in source code file, or add in the file of source new when being relied on header file, can lead
Header file dependence is caused to change, according to the preassigned obj ect file of Makefile files to source code file and head text
The dependence of part, then it can trigger and source code file is recompilated, now compiler can change head text because can not find
The source file of part title, or added in the file of source it is new be relied on header file and compile error occur, and to terminal circle
Face provides corresponding error message.Such as the header file B.h that header file A.h is relied on is renamed as header file C.h, or in head text
Part A.h is newly-increased when being relied on header file D.h, if relying on header file A.h certain xx.c source code file and unmodified, according to
Makefile files to xx.c source code files and header file A.h dependence, then can according to preassigned obj ect file
Triggering is recompilated to xx.c source code files, and now compiler can not find header file B.h or header file D.h and compile
Mistake is translated, does not update dependences of the header file A.h to header file D.h in obj ect file.
Existing technical scheme is, that is, to xx.c files, to call compiler to each source code file by compilation script
Pretreatment order is performed, i.e., preliminary scan, processing annotation, grand, precompile instruction and header file are carried out to source code file xx.c
Dependence, generate primary target file xx.d files;By compilation phase, assembly phase generation Secondary objective file xx.o texts
Part, Secondary objective file xx.o files are obtained from the primary target file xx.d files is relied on item as primary target text
Part xx.d files are relied on item, write in three-level file destination xx.dep files, wherein Secondary objective file xx.o files
It is relied on the list for all header files that the i.e. corresponding xx.c files of item and the xx.c files directly or indirectly rely on.
The shortcomings that prior art is when being compiled every time, is required for re-executing pretreatment for each xx.c files
New primary target file xx.d files are generated, then the dependence in the new primary target file xx.d files is sentenced
It is disconnected whether to need to recompilate Secondary objective file xx.o files corresponding to generation.Although change the public head file of basic module
Compiling flow is had a great influence when title or its dependence to other header files change, but this case is sent out after all
Raw probability is not high, when being compiled according to prior art, reduces the efficiency of each secondary compiling.
The content of the invention
In view of this, the present invention provides a kind of source code file Compilation Method and device.
Specifically, the present invention is achieved through the following technical solutions:
A kind of source code file Compilation Method, methods described include:
Obtain the compile error information that compiler is sent;
According to source code file information corresponding to the compile error acquisition of information;
It is to described that the default compiling information content and the compile error information are included in the compile error information
Source code file is carried out caused by non-compiling first in the case of compile error information, according to the source code file information,
Delete compiling generation file corresponding to source code file;
Delete source code file corresponding to compiling generation file after, call compiler to the source code file again
It is compiled.
A kind of source code file compilation device, described device include:
Compile error information acquisition unit, the compile error information sent for obtaining compiler;
Source code file information acquisition unit, believe for the source code file according to corresponding to the compile error acquisition of information
Breath;
Compiling generation file delete unit, in the compile error information comprising it is default compiling the information content,
And the compile error information is that the situation of non-compile error information caused by compiling first is carried out to the source code file
Under, according to the source code file information, delete compiling generation file corresponding to source code file;
Unit is recompilated, for after compiling generation file corresponding to source code file is deleted, calling compiler pair
The source code file re-starts compiling.
The present invention can not find source code file dependence by checking compile error information, if being included in compile error information
The error message of header file, then the file destinations at different levels that Make Clean orders have generated source code file are performed automatically and are deleted
Remove, then perform Make orders again and re-start compiling, this time compiling equivalent to compiling first.Compared with prior art, can be certainly
It is dynamic to recompilate there occurs the module for the compile error that can not find header file, improve compiling efficiency.
Brief description of the drawings
Fig. 1 is a kind of application scenario diagram shown in an exemplary embodiment of the invention;
Fig. 2 is a kind of implementing procedure figure of the source code file Compilation Method shown in an exemplary embodiment of the invention;
Fig. 3 is that the source code file shown in an exemplary embodiment of the invention changes to the dependence of header file
Schematic diagram;
Fig. 4 is that one kind of the source code file Compilation Method shown in an exemplary embodiment of the invention is preferable to carry out flow
Figure;
Fig. 5 is a kind of structural representation of the source code file compilation device shown in an exemplary embodiment of the invention;
Fig. 6 is a kind of preferred structure signal of the source code file compilation device shown in an exemplary embodiment of the invention
Figure.
Embodiment
A kind of source code file Compilation Method provided first the embodiment of the present invention illustrates, and this method can wrap
Include following steps:
Obtain the compile error information that compiler is sent;
According to source code file information corresponding to the compile error acquisition of information;
It is to described that the default compiling information content and the compile error information are included in the compile error information
Source code file is carried out caused by non-compiling first in the case of compile error information, according to the source code file information,
Delete compiling generation file corresponding to source code file;
Delete source code file corresponding to compiling generation file after, call compiler to the source code file again
It is compiled.
In source code file compilation process, wherein the compiling right and wrong carried out to source code file compile first, because with
Family may have modified the source file name relied in source code file in advance, or source file has increased the head text being relied on newly
Part, in non-compilation process first is carried out to source code file, compiler can produce compile error information, and the present invention obtains compiling
The compile error information that device is sent;Source code file information corresponding to being obtained from the compile error information, such as obtain source
The title of code file, can learn it is which source code file compile error occurs;If nothing is included in compile error information
Method finds the error message of the header file of source code file dependence, then according to the source code file information, deletes source code text
Compiling generation file corresponding to part;After compiling generation file corresponding to source code file is deleted, compiler is called to described
Source code file re-starts compiling.As described above, we can obtain an application scenario diagram being illustrated in fig. 1 shown below,
Existing xx1.c, xx2.c, xx3.c source code file as shown in Figure 1, compilation script is by obtaining compiler to source code file
Compile error information, source code file information is obtained from compile error information, that is, need which source code file compiling known
Malfunction, if including the error message for the header file that can not find source code file dependence in compile error information, call and compile
The file destinations at different levels that device deletes the corresponding generation of source code file are translated, then source code file is compiled again by compiler
Translate.
After calling compiler re-starts compiling to the source code file, if getting the volume that compiler is sent again
Error message is translated, then stops the compilation process to the source code file, if the volume that the compiler got again is sent
The error message that the header file that can not find source file dependence is included in error message is translated, then give a warning information, the warning
Information can not find the mistake for the header file that source file relies on for prompting source code file described in user to be implicitly present in.
In order that those skilled in the art are better understood from the technical scheme in the present invention, here will be in detail to exemplary
Embodiment illustrates, and its example is illustrated in the accompanying drawings.In the following description when referring to the accompanying drawings, unless otherwise indicated, different accompanying drawings
In same numbers represent same or analogous key element.Embodiment described in following exemplary embodiment do not represent with
The consistent all embodiments of the application.On the contrary, they be only with as being described in detail in appended claims, the application
The example of the consistent apparatus and method of some aspects.Based on the embodiment in the present invention, those of ordinary skill in the art are obtained
The every other embodiment obtained, should all belong to the scope of protection of the invention.
Shown in reference picture 2, for a kind of implementing procedure figure of source code file Compilation Method of the present invention, it specifically includes following
Step:
S101, obtain the compile error information that compiler is sent;
High-level language compilation process stated in the background was generally divided into such as the next stage:Pre-process, compile, collecting,
Connection.Pretreatment stage carries out preliminary scan to source code file, and processing annotation, grand, precompile instruction and header file, which rely on, to close
Source code file is converted to xx.i files by system, pretreatment stage;Compilation phase holds to the xx.i files that pretreatment stage generates
Row compiling, a corresponding assembling file xx.s file is generated to each source code file, each assembling file includes respective sources
The assembly code of code file compiling generation;Assembling file is converted to machine code, generation obj ect file xx.o texts by the assembly phase
Part;Access phase is that multiple obj ect files of same module are merged into a file destination.To the source code file of certain module
Compiled first, there was only source code file, header file, Makefile files under the code directory of the module, without compiling
The file destinations at different levels of generation;Secondary compiling is carried out to the source code file of the module, not only deposited under the code directory of the module
In source code file, header file, Makefile files, there is also the part or all of file destinations at different levels of compiling generation.It is secondary
Compiling is that secondary compiling can be using the file destinations at different levels for compiling generation first, according to its middle finger compared to the difference compiled first
Fixed source code file judges the dependence of header file the renewal time of each file, pre- to decide whether to re-execute
Processing, compiling or link process.
When source code file stated in the background changes to the dependence of header file, it can trigger to source generation
Code file recompilated, now compiler can because can not find source code file dependence header file compile error occurs,
And provide corresponding error message to terminal interface.Such as source code file xx.c files as shown in Figure 3 rely on header file A.h,
Header file A.h relies on header file B.h, and the header file B.h that header file A.h is relied on is renamed as into header file C.h, or in header file
A.h is newly-increased when being relied on header file D.h, if header file A.h xx.c source code files and unmodified are relied on, according to Makefile
File to xx.c source code files and header file A.h dependence, then can trigger pair according to preassigned obj ect file
Xx.c source code files are recompilated, and now compiler can not find header file B.h or header file D.h and compiling mistake occurs
By mistake, dependences of the header file A.h to header file D.h is not updated in obj ect file.At this moment compiler can be sent out to the present invention
Go out compile error information, the present invention obtains the compile error information that compiler is sent.
S102, according to source code file information corresponding to the compile error acquisition of information;
If source code file mentioned above changes to the dependence of header file, can trigger to enter source code file
Row recompilates, and now compiler can be because occurring compile error, and to terminal can not find the header file of source code file dependence
Interface provides corresponding error message, the compile error information that the present invention is sent by obtaining compiler, from compile error information
Which corresponding to middle acquisition source code file for information about, such as need to know the title of source code file, i.e., it needs to be determined that source
Sent out when code file compiles into mistake.Source code file information is determined, has also determined that according to source code file accordingly
Compile the file destinations at different levels of generation.Such as the compile error information that the above-mentioned compiler got is sent, it is wrong from the compiling
It can be seen that the source code file that compile error occurs is xx.c source code files in false information, root is also can determine that accordingly
According to the file destinations at different levels of xx.c source code files compiling generation, such as primary target file xx.d files, Secondary objective file
Xx.o files, three-level level file destination xx.dep files.
S103, it is comprising the default compiling information content and the compile error information in the compile error information
In the case of non-compile error information caused by compiling first is carried out to the source code file, according to the source code file
Information, delete compiling generation file corresponding to source code file;
The head that can not find source code file dependence is included in the compile error information that the compiler of the acquisition is sent
The error message of file and the compile error information are that the source code file is carried out to compile caused by non-compiling first
In the case of error message, according to the source code file information, delete compiling generation file corresponding to source code file, i.e., it is each
Level file destination.When meaning to carry out source code file the non-error of compiling first, if the compile error is that can not find source generation
The header file mistake that code file relies on, then file destinations at different levels according to corresponding to source code file information deletion source code file.
Such as compiler source code file xx.c is carried out it is non-compile first, can be secondary compiling, source code file xx.c files according to
Rely header file A.h, because the header file B.h that header file A.h is relied on is renamed as header file C.h by prior user, or in head text
Part A.h is newly-increased when being relied on header file D.h, if relying on header file A.h xx.c source code files and unmodified, according to
Makefile files to xx.c source code files and header file A.h dependence, then can according to preassigned obj ect file
Triggering is non-to the progress of xx.c source code files to be compiled first, and now compiler can not find header file B.h or header file D.h and occur
Compile error, the header file B.h that can not find source code file xx.c dependences is included in the compile error information that obtains of the present invention
Or header file D.h error messages, according to source code file xx.c, the targets at different levels for deleting the corresponding generations of source code file xx.c are literary
Part, such as primary target file xx.d files mentioned above, Secondary objective file xx.o files, three-level level file destination
Xx.dep files.The present invention performs Make Clean orders in compiler by source code file xx.c by calling compiler
The file destinations at different levels generated are deleted.
S104, after compiling generation file corresponding to source code file is deleted, compiler is called to source code text
Part re-starts compiling.
For the present invention by calling compiler, source code file xx.c has been given birth in the Make Clean orders performed in compiler
Into file destinations at different levels delete after, by call compiler perform compiler in Make orders to the source code file
Recompilated, now this time compiling equivalent to compiling first.Such as Make Clean orders in compiler are performed by source
After the file destinations at different levels that code file xx.c has been generated are deleted, the Make orders in compiler are performed to source code file
Xx.c re-starts compiling, because file destination at different levels corresponding to source code file xx.c has been deleted, now this time to source generation
The compiling that code file xx.c is carried out is equivalent to be to compile first, and when occurring afterwards if any any compile error, the present invention is again
Obtain the compile error information that compiler is sent.
In a preferred embodiment of the invention, compile error treatment mechanism again can further be increased after S104, such as
Shown in Fig. 4.
S105, after calling compiler re-starts compiling to the source code file, if getting compiler hair again
The compile error information gone out, then stop the compilation process to the source code file.
After being recompilated to source code file, if getting the compile error information that compiler is sent again,
Then stop the compilation process to the source code file, compile error information is recorded, if the compiler got again
The error message for the header file that can not find source file dependence is included in the compile error information sent, then give a warning information,
The warning message can not find the mistake for the header file that source file relies on for prompting source code file described in user to be implicitly present in
By mistake.Generally, if source code file changes to the dependence of header file, it can trigger and source code file is carried out
Recompilate, at this moment compile error occurs for compiler, can compile that there occurs can not find source generation automatically using technical solution of the present invention
The source code file of the compile error for the header file that code file relies on, but delete source code text according to technical scheme
It is wrong there occurs compiling again when being recompilated to source code file after the file destinations at different levels generated corresponding to part
By mistake, and compile error is the mistake for the header file that can not find source code file dependence, then give a warning information, warning message
The mistake for the header file that source file relies on can not be found for prompting source code file described in user to be implicitly present in.Because for the first time
When handling this mistake that can not find the header file that source code file relies on, and it is because source generation not know the mistake
Code file has changed and triggered to the dependence of header file, or because in source code file compilation process,
The header file is not added to come and trigger.
Assuming that during to source code file xx.c compile errors, compile error is that can not find source code file xx.c dependences
Header file A.h, the source code file can be recompilated automatically using technical solution of the present invention, if being recompilated to source code file
Success, then may be considered source code file xx.c and header file A.h dependence changed;If to source code file
Failure is recompilated, the header file that can not find source code file xx.c dependences is included in the compile error information obtained again
It A.h error messages, then may be considered in source code file xx.c compilation processes, do not add header file A.h to come
And trigger, stop the compilation process to source code file xx.c, remind user to change source code file and solve the mistake.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in computer read/write memory medium, and the program exists
During execution, execution the step of including above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or CD
Etc. it is various can be with the medium of store program codes.
Corresponding with a kind of foregoing source code file Compilation Method implementing procedure figure, present invention also offers a kind of source code
File compilation device embodiment.Shown in reference picture 5, including compile error information acquisition unit 210, source code file acquisition of information
Unit 220, compiling generation file delete unit 230, recompilate unit 240.
The compile error information acquisition unit 210, the compile error information sent for obtaining compiler, and will obtain
To compile error information be sent to source code file information acquisition unit 220;
The source code file information acquisition unit 220, for the source generation according to corresponding to the compile error acquisition of information
Code fileinfo, and the source code file information got is sent to compiling generation file and deletes unit 230;
The compiling generation file deletes unit 230, for believing in the compile error information comprising default compiling
Breath content and the compile error information are that non-compile error information caused by compiling first is carried out to the source code file
In the case of, according to the source code file information, delete compiling generation file corresponding to source code file;
The recompility unit 240, for after compiling generation file corresponding to source code file is deleted, calling and compiling
Translate device and compiling is re-started to the source code file.
In a kind of embodiment of the present invention, the compiling generation file is deleted unit 230 and specifically can be used for:
Error message and the volume comprising the header file that can not find source file dependence in the compile error information
It is in the case of non-compile error information caused by compiling first is carried out to the source code file, according to institute to translate error message
Source code file information is stated, deletes compiling generation file corresponding to source code file.
In a kind of embodiment of the present invention, the recompility unit 240 can be also used for:
After calling compiler re-starts compiling to the source code file, if getting the volume that compiler is sent again
Error message is translated, then stops the compilation process to the source code file.
Shown in reference picture 6, the source code file compilation device that the embodiment of the present invention is provided can also include:
Warning unit 250, can not if being included in the compile error information sent for the compiler got again
The error message of the header file of source file dependence is found, then give a warning information, and the warning message is used to prompt described in user
Source code file is implicitly present in the mistake for the header file that can not find source file dependence.
The effect implementation process of unit specifically refers to the implementation process that step is corresponded in the above method in said system,
It will not be repeated here.
For system embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.System embodiment described above is only schematical, wherein described be used as separating component
The unit of explanation can be or may not be physically separate, can be as the part that unit is shown or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Need to select some or all of module therein to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
The present invention can be described in the general context of the calculated value executable instruction performed by computer, such as program
Module.Usually, program module includes performing particular task or realizes routine, program, object, the group of particular abstract data type
Part, data structure etc..The present invention can also be put into practice in a distributed computing environment, in these DCEs, by
Task is performed and connected remote processing devices by communication network.In a distributed computing environment, program module can be with
In the local and remote computer-readable storage medium including storage device.
Described above is only the embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (8)
1. a kind of source code file Compilation Method, it is characterised in that methods described includes:
Obtain the compile error information that compiler is sent;
According to source code file information corresponding to the compile error acquisition of information;
It is to the source generation that the default compiling information content and the compile error information are included in the compile error information
In the case that code file carries out non-compile error information caused by compiling first, according to the source code file information, delete
Compiling generation file corresponding to source code file;
After compiling generation file corresponding to source code file is deleted, compiler is called to re-start the source code file
Compiling.
2. according to the method for claim 1, it is characterised in that described that default volume is included in the compile error information
It is that non-compile error caused by compiling first is carried out to the source code file to translate the information content and the compile error information
In the case of information, according to the source code file information, compiling generation file corresponding to source code file is deleted, including:
Error message and the compiling comprising the header file that can not find source file dependence in the compile error information is wrong
False information is in the case of non-compile error information caused by compiling first is carried out to the source code file, according to the source
Code file information, delete compiling generation file corresponding to source code file.
3. according to the method for claim 1, it is characterised in that methods described also includes:
After calling compiler re-starts compiling to the source code file, if it is wrong to get the compiling that compiler is sent again
False information, then stop the compilation process to the source code file.
4. according to the method for claim 3, it is characterised in that methods described also includes:
If the head text that can not find source file dependence is included in the compile error information that the compiler got again is sent
The error message of part, then give a warning information, and the warning message is used to prompt source code file described in user to be implicitly present in nothing
Method finds the mistake of the header file of source file dependence.
5. a kind of source code file compilation device, it is characterised in that described device includes:
Compile error information acquisition unit, the compile error information sent for obtaining compiler;
Source code file information acquisition unit, for the source code file information according to corresponding to the compile error acquisition of information;
Compiling generation file deletes unit, for including the default compiling information content and institute in the compile error information
It is root in the case of non-compile error information caused by compiling first is carried out to the source code file to state compile error information
According to the source code file information, compiling generation file corresponding to source code file is deleted;
Unit is recompilated, for after compiling generation file corresponding to source code file is deleted, calling compiler to described
Source code file re-starts compiling.
6. device according to claim 1, it is characterised in that the compiling generation file is deleted unit and is specifically used for:
Error message and the compiling comprising the header file that can not find source file dependence in the compile error information is wrong
False information is in the case of non-compile error information caused by compiling first is carried out to the source code file, according to the source
Code file information, delete compiling generation file corresponding to source code file.
7. device according to claim 1, it is characterised in that the recompility unit is additionally operable to:
After calling compiler re-starts compiling to the source code file, if it is wrong to get the compiling that compiler is sent again
False information, then stop the compilation process to the source code file.
8. device according to claim 1, it is characterised in that described device also includes:Warning unit;
The warning unit, if being included in the compile error information sent for the compiler got again to find
The error message for the header file that source file relies on, then give a warning information, and the warning message is used to prompt source generation described in user
Code file is implicitly present in the mistake for the header file that can not find source file dependence.
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 true CN107678748A (en) | 2018-02-09 |
CN107678748B 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) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109614106A (en) * | 2018-12-21 | 2019-04-12 | 北京龙创悦动网络科技有限公司 | A kind of C++ program compiling method and device |
CN109740127A (en) * | 2019-01-08 | 2019-05-10 | 益模(东莞)智能科技有限公司 | A kind of unordered assembly and disassembly methods based on threedimensional model |
CN109918082A (en) * | 2019-03-06 | 2019-06-21 | 驿涛科技股份有限公司 | The compiling system and method for software development |
CN110377276A (en) * | 2019-07-19 | 2019-10-25 | 潍柴动力股份有限公司 | Source code file management method and equipment |
CN110908666A (en) * | 2019-10-31 | 2020-03-24 | 北京浪潮数据技术有限公司 | Source code sharing management method, device, equipment and computer storage medium |
CN111475196A (en) * | 2020-03-30 | 2020-07-31 | 杭州迪普信息技术有限公司 | Compiling alarm tracing method and device, electronic equipment and computer readable medium |
CN112631599A (en) * | 2020-12-09 | 2021-04-09 | 潍柴动力股份有限公司 | Compiling method, device and storage medium |
WO2021142763A1 (en) * | 2020-01-17 | 2021-07-22 | 上海渠杰信息科技有限公司 | Method for automatically identifying cause of compilation failure and restarting compilation |
CN114035805A (en) * | 2021-11-16 | 2022-02-11 | 北京字节跳动网络技术有限公司 | Code conversion method, apparatus, medium, and device for pre-compiler |
Citations (3)
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 |
-
2017
- 2017-09-21 CN CN201710858365.1A patent/CN107678748B/en active Active
Patent Citations (3)
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)
Title |
---|
SEVEN_AMBER: ""Makefile经典教程(一个很棒很清晰的讲解)"", 《CSDN》 * |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109614106A (en) * | 2018-12-21 | 2019-04-12 | 北京龙创悦动网络科技有限公司 | A kind of C++ program compiling method and device |
CN109614106B (en) * | 2018-12-21 | 2022-04-19 | 北京龙创悦动网络科技有限公司 | C + + program compiling method and device |
CN109740127A (en) * | 2019-01-08 | 2019-05-10 | 益模(东莞)智能科技有限公司 | A kind of unordered assembly and disassembly methods based on threedimensional model |
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 |
CN109918082A (en) * | 2019-03-06 | 2019-06-21 | 驿涛科技股份有限公司 | The compiling system and method for software development |
CN110377276A (en) * | 2019-07-19 | 2019-10-25 | 潍柴动力股份有限公司 | Source code file management method and equipment |
CN110908666B (en) * | 2019-10-31 | 2022-03-22 | 北京浪潮数据技术有限公司 | Source code sharing management method, device, equipment and computer storage medium |
CN110908666A (en) * | 2019-10-31 | 2020-03-24 | 北京浪潮数据技术有限公司 | 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 |
CN111475196A (en) * | 2020-03-30 | 2020-07-31 | 杭州迪普信息技术有限公司 | Compiling alarm tracing method and device, electronic equipment and computer readable medium |
CN111475196B (en) * | 2020-03-30 | 2023-12-12 | 杭州迪普信息技术有限公司 | Compiling alarm tracing method and device, electronic equipment and computer readable medium |
CN112631599A (en) * | 2020-12-09 | 2021-04-09 | 潍柴动力股份有限公司 | Compiling method, device and storage 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 |
Also Published As
Publication number | Publication date |
---|---|
CN107678748B (en) | 2020-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107678748A (en) | A kind of source code file Compilation Method and device | |
Lacomis et al. | Dire: A neural approach to decompiled identifier naming | |
US9298924B2 (en) | Fixing security vulnerability in a source code | |
Fu et al. | Coda: An end-to-end neural program decompiler | |
CN111090433B (en) | Data processing method, device and storage medium | |
Greenaway et al. | Bridging the gap: Automatic verified abstraction of C | |
CN101866315B (en) | Test method and system of software development tool | |
Hegedüs et al. | Back-annotation of simulation traces with change-driven model transformations | |
CN102200911A (en) | Variable closure | |
CN108139891A (en) | Include suggesting for the missing of external file | |
CN107015813A (en) | Method, device and electronic equipment that code is repaired | |
US20160246580A1 (en) | Whole-program optimization using data from previous compilation runs | |
CN106055343B (en) | A kind of object code reverse-engineering system based on program evolution model | |
Mani et al. | Test case generation for embedded system software using UML interaction diagram | |
JP4951416B2 (en) | Program verification method and program verification apparatus | |
US10747514B2 (en) | Reduced save and restore instructions for call-clobbered registers | |
US9454382B2 (en) | Verification of UML state machines | |
US20110055814A1 (en) | Compiler-assisted program source code filter | |
CN114356964A (en) | Data blood margin construction method and device, storage medium and electronic equipment | |
Hue et al. | USLTG: test case automatic generation by transforming use cases | |
Hue et al. | A transformation-based method for test case automatic generation from use cases | |
CN106126225B (en) | A kind of object code reverse engineering approach based on program evolution model | |
US20090064092A1 (en) | Visual programming language optimization | |
KR102102546B1 (en) | Scl validation detection method and scl validation detection device therefor | |
CN112596737A (en) | Method, system, equipment and storage medium for scanning function call relation |
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 |