Keil MDK compilation speed is too slow, how to increase the speed of the compiler by 10 times

The speed of MDK compilation is too slow, and a complete compilation often takes a few minutes. As a developer, this time is simply unbearable.
As shown in the figure below, in the Options for Target setting, do not tick 1, the speed will be a little faster, and then tick it when mass production.
Do not tick 2, the compilation time will be reduced by more than half, but a lot of debugging information will be lost, which will cause great inconvenience to the Debug work, whether to check it depends on personal choice.
insert image description here

The most important thing is this page, the compilation time can fly quickly, the Target subpage,insert image description here

Compiler Choose to use the V6 compiler, the project will be compiled with the latest V6.xx supported by the current MDK, and the updated compiler will still be used after the MDK is updated in the future.

Compile again, and you can find that the compilation speed is greatly accelerated. Taking my project as an example, it can be accelerated from about 3 minutes by the default V5 compiler to less than 15 seconds, and the speed is increased by 10 times.

This is simply the difference between the 936 soldering iron and the T12 soldering iron, it is so fast that it will fly off.

Be careful to check "Use MicroLIB", otherwise the program will be stuck when the serial port is used.

Knock on the blackboard: V5 compiles an OK project, but V6 may fail to compile it. Even if it does, I don’t know if there will be inexplicable problems. It is recommended to use this method when starting a project from scratch.

Hopefully it helped you.

Guess you like

Origin blog.csdn.net/13011803189/article/details/108521039
Recommended