KEIL MDK slow compilation solution

KEIL MDK slow compilation solution

December 3, 2021 V1.0

1. Problem description

In keil MDK, I found that some projects are compiled very slowly, while some projects are compiled very quickly, and projects with slow compilation speed are a waste of our time when compiling.
The computers and keil versions used for compiling these two projects are the same. The software version is as follows:
insert image description here

2. Analyze the problem

We carefully watched the output information of projects with slow compilation speed and found that most of the time was spent on compiling the standard library function files, and we generally do not need to change the standard library function files, so there is no need to compile the standard library function files every time. library function file.

insert image description here
Compared with the projects that compile quickly, it is found that the projects that compile quickly do not compile standard library function files. Therefore, we judge that the difference in compilation time lies in whether to compile the standard library function file.

3. Solve problems

In the group where the standard library function is located, right click and uncheck the option in front of the always bulid.
insert image description here

Guess you like

Origin blog.csdn.net/wcc243588569/article/details/121705693
Recommended