Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ESP8266 Compilation Speed (Read 2105 times)
Sylvain
Junior Member
**
Offline


Posts: 67
Location: Montreal, Canada
Joined: Nov 13th, 2014
ESP8266 Compilation Speed
Sep 16th, 2021 at 1:49am
Print Post  
Hi,   
   Could you told me why my compilation time is long (25 Second), the 8 Cores CPU don't go over 50% for each, SSD Disk access is lower than 10mb/s, memory have lot of free space, and the compiler is set for mutli cores.
Is there a way to speed it up? maybe I miss some setting?

Thanks
Sylvain Bissonnette 
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2173
Joined: Feb 13th, 2019
Re: ESP8266 Compilation Speed
Reply #1 - Sep 16th, 2021 at 8:33am
Print Post  
Thanks for the report.

There are additional settings which can be used shown in the video below:
https://www.youtube.com/watch?v=V4D7J9bFvC4

If you could attach the full build output as a text file, with the Verbose and Show Build Properties checked (shown at the top of this page), then we will be able to assist further.
  
Back to top
 
IP Logged
 
Sylvain
Junior Member
**
Offline


Posts: 67
Location: Montreal, Canada
Joined: Nov 13th, 2014
Re: ESP8266 Compilation Speed
Reply #2 - Sep 16th, 2021 at 4:54pm
Print Post  
Thanks for your reply,  The only option I had miss is the deep search, but if I uncheck I have a error at
#include <Ticker.h>

I replace this line by
#include <..\..\libraries\Ticker\src\Ticker.h>

But now my code no longer compile and I have a lot of error inside the ticker library...

Sylvain
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2173
Joined: Feb 13th, 2019
Re: ESP8266 Compilation Speed
Reply #3 - Sep 16th, 2021 at 10:08pm
Print Post  
Thanks for the update.

If you re-enable the deep search option, and attach the requested log, we will be able to guide you further.

The speed of the toolchains is outside of our control. They are .exe files that run as fast as they run. Some run quickly but the esp toolchains are slow, other are even slower.

Switching off Deep Search does avoid running one part of the build process but it is important to clearly understand the implications. IN many cases you can add #includes for libraries directly to the .ino code, then deep search does have to run in order to discover the libraries. If your .ino code contains conditional (#if) #includes then deep search will need to be on.

In any event, submitting the info requested in the yellow box above always saves us time and allows us to give more informed answers.
« Last Edit: Sep 17th, 2021 at 12:03pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Sylvain
Junior Member
**
Offline


Posts: 67
Location: Montreal, Canada
Joined: Nov 13th, 2014
Re: ESP8266 Compilation Speed
Reply #4 - Sep 22nd, 2021 at 1:07am
Print Post  
thanks for the reply, and excuse for the long respond delay,  Your reply is clear, I understand now because I have a lot of #ifdef in my code.

Thanks for your help
Sylvain Bissonnette
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint