Compilation processing method and apparatus, and electronic device

A processing method and pre-compilation technology, applied in the field of project compilation applications, can solve the problems of increasing the workload of developers, long project construction time, and inability to meet the rapid iteration of products, reducing the probability of recompilation and improving the overall Compilation speed, the effect of shortening the build time

Active Publication Date: 2018-01-19
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] At present, as users have more and more functional requirements for large-scale projects, the number of modules and codes of large-scale projects will continue to increase. However, due to the intricate dependencies between modules in large-scale projects, when compiling and When testing, it is necessary for the corresponding developers to communicate and cooperate with each other to ensure the reliable development of large-scale projects. In this way, the situation of "one change, overall reprogramming" often occurs, which not only increases the workload of developers, but also makes the entire project The construction time is too long, which cannot meet the needs of rapid product iteration

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Compilation processing method and apparatus, and electronic device
  • Compilation processing method and apparatus, and electronic device
  • Compilation processing method and apparatus, and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.

[0043] Based on the record in the background technology section above, in order to improve the development efficiency of existing large-scale projects, modules are usually divided, so that multiple developers can work together to complete the development of a large-scale project. Since each of the divided modules is an integral part of the large-scale project, mutual cooperation between the modules is required to ensure the normal operation of the large-scale ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

Embodiments of the invention provide a compilation processing method and apparatus, and an electronic device. For multiple source code files corresponding to multiple modules which a large project isdivided into, pre-compilation instructions contained in the source code files are obtained, and based on this, direct dependency relationships and indirect dependency relationships existent in the source code files are obtained; then, the direct dependency relationships enabling a frequency of changing a quantity of the dependency relationships existent in the source code files to be maximal are screened out, and the pre-compilation instructions corresponding to the screened-out direct dependency relationships are deleted from the corresponding source code files; and in a forward declaration way, the current source code files are updated to obtain multiple to-be-compiled source code files. By reducing the dependency relationships existent in the source code files, the effect of increasingthe overall compilation speed is achieved from the source, the occurrence probability of re-compilation in development is reduced, the workload of development personnel is reduced, and the construction time of the whole project is shortened.

Description

Technical field [0001] This application relates to the field of project compilation applications, and in particular to a compilation processing method, device and electronic equipment. Background technique [0002] C++ is the inheritance of C language. It can carry out procedural programming of C language, object-based programming characterized by abstract data types, and object-oriented programming characterized by inheritance and polymorphism. It can be seen that C++ has both low-level and object-oriented attributes, making it the preferred development language for large projects (such as large game projects). [0003] In practical applications, a large-scale project is usually not compiled as a whole project, but is divided into multiple modules. Different modules can be organized in a static library or a dynamic library, and each module is compiled separately And testing, so that multiple developers can collaborate to develop a large-scale project in parallel, improving projec...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/41
Inventor 陈虎
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products