Follow+Star Public Account, don’t miss wonderful content
Author | strongerHuang
WeChat Public Account | strongerHuang

Upgrade to a Higher Configuration Computer
What most people think of first is: upgrading to a higher configuration computer.

Reduce Compilation Output Files
Some unnecessary debugging and browsing information files can be excluded from the output during compilation, such as:
1.Keil MDK
Project -> Options for Target -> Output/Listing:
The configurations here will affect the compilation speed, especially the Browse Information. If you use the Go to Definition Of feature, you will need these types of files.
If checked, it will output some “intermediate compilation files”, and you will have many intermediate files in your set output path (default “Listings” and “Objects”) that will occupy compilation time during the compilation process.
The content and function of these files can be referenced in the article:Keil Series Tutorial_File Types and Related Descriptions
2.IAR EWARM
Similar to Keil MDK, IAR also has related output file configurations, such as:
Project -> Options -> C/C++ Compiler -> output:
gcc test.c -o test
Change the Compiler Toolchain
This is different from changing the computer: changing the compiler is just a software tool, no need to see the boss’s face.
For example:
Upgrading Keil MDK from AC5 to AC6 will greatly increase speed.
You can also change the MDK compiler to gcc compiler:A Step-by-Step Guide to Using GCC Compiler Toolchain in Keil MDK
Related articles can be referenced:
Understanding the AC6 Compiler
Differences in Browse Information Generated by Compilers AC5 and AC6
Important Content and Differences in Optimization Options Between AC5 and AC6
Optimize Code
For embedded code, most are written in C/C++, and all have #include xxx.h header files.
If header files are repeatedly and multilayered included, modifying one header file will require recompilation of all related header and source files, which will also affect compilation speed.
Similar to the image below, if you modify the bottom file, all upper files need to be compiled again:
Recommended reading: Several Methods and Key Points for Referencing Header Files in Software Projects
Click “Read Original” to see more shares.