Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

C + + program compiling method and device

A technology for compiling and merging algorithms, applied in the computer field, to achieve the effect of simple program, easy function, and optimized program performance

Active Publication Date: 2019-04-12
北京龙创悦动网络科技有限公司
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to improve the compilation speed of C++ files, the present invention provides a method for accelerating the compilation of C++ programs to solve the problem of improving the compilation speed of C++ files on the premise of saving hardware compilation environment and compilation time overhead as much as possible

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
  • C + + program compiling method and device
  • C + + program compiling method and device
  • C + + program compiling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The present invention will be described in further detail below in conjunction with the accompanying drawings.

[0051] see figure 1 , is a schematic flow diagram of a C++ program compilation method of the present invention, and the schematic diagram includes the following steps:

[0052]S1. Obtain multiple cpp files;

[0053] S2. performing merging algorithm processing on the multiple cpp files to generate a target cpp file to be compiled;

[0054] S3. Compiling the target cpp file.

[0055] The above step S1 obtains a plurality of cpp files. The present invention loads the pre-established C++ development project by opening the compiling system, and when the compiling system runs the program, the file traversal system function readdir is used to perform a catalog operation on the pre-established C++ development project. Traversing recursively, searching for files with cpp as the suffix name, obtaining the multiple cpp files, and storing the obtained file names repre...

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

The invention provides a C + + program compiling method which comprises the following steps: obtaining a plurality of cpp files, carrying out merging algorithm processing on the plurality of cpp filesto generate a to-be-compiled target cpp file, and finally compiling the target cpp file. According to the method, a large number of cpp files are prevented from being compiled; E; each cpp file needsto be independently preprocessed, compiled, assembled and compiled to generate a target link, and the combined cpp files are directly and uniformly compiled, so that various system resources and a large amount of time cost and system cost are saved, t, the compiling process of a C + + program is accelerated, and the performance of the system is improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for compiling a C++ program. Background technique [0002] Compiling C++ files usually uses a compiler, such as clang, gcc and other C++ compilers to compile it. When compiling multiple C++ files, such as more than 2000 or even more files, the existing compiler compiles the C++ files one by one, which consumes a lot of time. When the C++ compiler compiles files, it starts a process every time it compiles a file, and loading various system resources will generate a lot of time and system overhead. [0003] At present, to compile a large number of C++ files, the distributed compilation technology is mainly used to send the C++ files to different machines for compilation, and finally return the result integration. This method requires the support of third-party distributed software and consumes a large amount of hardware environment. For example, compiling ...

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
IPC IPC(8): G06F8/41
CPCG06F8/41
Inventor 郭凯
Owner 北京龙创悦动网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products