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 Extremely slow compile (Read 5835 times)
Brian
Junior Member
**
Offline


Posts: 10
Joined: Dec 6th, 2012
Extremely slow compile
Nov 2nd, 2016 at 4:30pm
Print Post  
I have a 4K program (source code). It is taking over 15 minutes to compile before downloading to the board. I imagine this is not normal. Under Arduino 1.6 it takes less than a minute.

Is there something that I could be optimizing?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Extremely slow compile
Reply #1 - Nov 2nd, 2016 at 6:52pm
Print Post  
Hi,

Please switch on vmicro>compiler>verbose and then post the build output as a .txt file or email to info[at]visualmicro.com

Thanks
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Extremely slow compile
Reply #2 - Nov 2nd, 2016 at 8:20pm
Print Post  
Thanks for the output.

As you say it always performing a full build which isn't normal.

Please ensure that tools>options>visual micro>compiler optization has true for both settings (core and libs). True is the default setting for both.

If they are both True then the problem must lie with project properties

View the visual micro properties of the current project and ensure the following defaults are still set:-

> Micro Optimise Build (Project Global)

Compare dates and times = true
Mcu defines affect core = true
Mcu defines affect libs = true
project defines affect core = false
project defines affect libraries = true
source defines affect libraries = false



  
Back to top
IP Logged
 
Brian
Junior Member
**
Offline


Posts: 10
Joined: Dec 6th, 2012
Re: Extremely slow compile
Reply #3 - Nov 2nd, 2016 at 9:24pm
Print Post  
All properties are as you listed. This is a brand new installation and I would imagine all of the defaults are set for optimization.

When I Build (instead of Rebuild) it takes less time because it doesn't compile the core, but it still compiles a lot of files that haven't changed.

Under "Compatibility", there are two options, both are True:
"Compile ALL Project Folder Sources"
"Compile Files In Project"

Could this be the problem?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Extremely slow compile
Reply #4 - Nov 3rd, 2016 at 2:22pm
Print Post  
Hi,

Don't change any options you are right the defaults are correct.

Don't use Rebuild because it does as its name suggests. Rebuilds Smiley

Please send a verbose output when you do not press Rebuild. Just the normal Build is fine.

Thanks
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Extremely slow compile
Reply #5 - Nov 4th, 2016 at 12:44pm
Print Post  
Hi,

Thanks for the output. Can you please confirm which ide you are using and what version of visual micro is installed. Look in "tools>extensions and updates>arduino ide" for the version number.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Extremely slow compile
Reply #6 - Feb 13th, 2017 at 4:30pm
Print Post  
Hi,

We believe the speed issue is related to your virus checker software. The visual micro build folder can be excluded if that was the issue.

Your compile times should be just a few seconds.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint