A tool that can improve the speed of C/C++ compilation

Follow + star official account , don't miss exciting content

d833f043a058826ef32faf9e42b20658.gif

Author | strongerHuang

WeChat public account | strongerHuang

Embedded software development, if there is no good development environment, it is easy to affect the coding efficiency, especially the code compilation speed.

For a C/C++ software project, one minute to code and one hour to compile, who can bear it?

13c3b62010f97193f5bd003fdb29722a.gif

Today, let’s talk about some common operations and methods to improve compilation speed in software development.

Change to a higher configuration computer

It may be that the first thing most people think of is: change to a computer with a higher configuration.

This is also one of the methods. Large companies are okay, but if it is a small and medium company, how many small companies are willing to replace your computer?

Therefore, this method is not realistic for many small and medium-sized companies.

9c35552444b096691fbccd64798db4f7.jpeg

optimize code

For small projects, it is true that the compilation speed can be improved by optimizing the code, but the problem is that small project compilation itself does not take time.

For large projects, optimizing the code itself is not an easy task, and requires a lot of manpower and material resources.

Again, optimize the code, I can't guarantee that the code is bug-free, or that the function will not have problems. In other words, the potential risks are relatively large, especially for large projects.

Therefore, this method is only suitable for small projects. For large projects of small companies, it is unrealistic when time is urgent.

Change compiler tool

Unlike changing the computer, changing the compilation tool is only a software tool, and you don't need to look at the boss's face.

There is a problem with this approach: compatibility issues.

If your software project is not compatible with the corresponding compilation tools, there will be certain risks.

Using Incredibuild (Shortcut Master)

I came into contact with Incredibuild last year, and found that the functions are still very powerful, and the main one is [fast compilation speed].

What is Incredibuild?

Incredibuild is called Kuaibian Master in Chinese, which uses idle CPU or cloud computing in the local area network to arm each machine with hundreds of cores, thereby accelerating time-consuming software development.

To put it bluntly: it can shorten the compilation time of your project . Here are some acceleration figures for different types of projects:

b678d53391794b515a2d8b0235770937.png

37a72664d06a57fec6bdf7ff7ac4725a.png

dbe6919b90cb0c23c69b9827d5c99c83.png

c4698d3789f25c1930ce52ebfd526fa5.png

3d2b0e40e3afe5d4c977f6eec0fdc0a8.png

5cb5fae1628cf88e85315996edc8b67b.png

How cutouts work:

ea42e94a29ecc2c229192ff5a84c9e4a.png

It can do: code unchanged • process unchanged • tool unchanged • substantial speedup.

f7634f88bde9b0818a02ec4cdb3018f3.png

Compatible with most platforms and tools on the market:

f4f64afd28b5d7c4c27a3e335f257633.png

If you need it, you can scan the QR code to apply for a trial license:

a699558e773fbeb6192e9337df2d6343.png

Or enter the group to chat with technical support,

c0a9a3505cd9ce6923aa30da646da753.png

You can also private message me.

Guess you like

Origin blog.csdn.net/ybhuangfugui/article/details/132485278