Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
ESP8266 Compilation Speed (Read 189 times)
Sylvain
Junior Member
**
Offline



Posts: 41
Montreal, Canada
ESP8266 Compilation Speed
Sep 16th, 2021 at 2:49am
 
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: 1014
Re: ESP8266 Compilation Speed
Reply #1 - Sep 16th, 2021 at 9:33am
 
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: 41
Montreal, Canada
Re: ESP8266 Compilation Speed
Reply #2 - Sep 16th, 2021 at 5:54pm
 
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: 1014
Re: ESP8266 Compilation Speed
Reply #3 - Sep 16th, 2021 at 11:08pm
 
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.
Back to top
« Last Edit: Sep 17th, 2021 at 1:03pm by Tim@Visual Micro »  
 
IP Logged
 
Sylvain
Junior Member
**
Offline



Posts: 41
Montreal, Canada
Re: ESP8266 Compilation Speed
Reply #4 - Sep 22nd, 2021 at 2:07am
 
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 Topic Print