- This topic has 2 replies, 2 voices, and was last updated 8 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forums › Mastering STM32 book support forum › Faster building and linking
Hi Carmine,
both in my personal projects, where i use STM32, and at work, where we use NXP LPC and Kinetis (The toolchain is just eclipse + gcc, its very similar to the one in Mastering STM32), compile time and linking can get really slow. I am using a lot of standard libraries spread over many files – Cube libs. (for work its the SKD), RTOS, TCP/IP stack, TLS library, fatFS and more. So a clean build can take up to 40s, the slowest part is by far the linking of the files. So is there something i can do, to make the compilation and linking go faster. I have decent PCs both in work and in home (with SSDs) and both are running windows.
Unfortunately, there is little you can do, especially if you perform a complete Clean & Rebuild. The suggest I can give you is to enable the parallel building going into the Project settings->C/C++ Build->Behaviour, as shown below:
Another solution consists in skipping from compilation all those file useless for your project (for example, unused HAL files).
Its good advice, thank you.