Improve compiler performance

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
oreste
Employee
Employee
Welcome! 50 replies posted 25 replies posted
Hi all,
after spending some days exploring how to speed up Dave compilation time, I have found a couple of options that give perceivable improved speed.

1) Change debug level from -g3 to -g:

490.attach




2) Add -pipe option to compiler settings see below:
489.attach


Result on my PC (i5 + SSD):

Project: PMSMSINH03_Example1

Standard settings: 66 secs
With new settings: 13 secs.

Please let me know your result/experience with the new settings.

Obviously after some testing they should become the default settings for next version of Dave

Best Regard

Oreste
PS.
With these settings no difference in the binary is expected.
0 Likes
1 Reply
User5327
Level 4
Level 4
Hi Oreste,
I tried your tips (on my notebook - i5; Hard Disk: 5400) - it looks very well:

Result on my PC (notebook - i5; Hard Drive: 5400 rpm):

Project: PMSMSINH03_Example1

Standard settings: 105 secs (Re-building project)
With -g (instead -g3): 23 secs (Re-building project)
With -pipe: 35 secs (Re-building project)
with both (-pipe AND -g): 20 secs (Re-building project)


Best Regards

Koumak
0 Likes