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
Hot Topic (More than 8 Replies) Compile Time (Read 4847 times)
davidcoward
Junior Member
**
Offline


Posts: 48
Joined: Oct 5th, 2012
Compile Time
Feb 16th, 2018 at 4:21am
Print Post  
Hi All

Are there options which I can fiddle with to reduce the compile time?

Right now, if I re-open a project and make a small adjustment (no new libraries), the compile process goes back to searching for and compiling libraries and the compile takes pretty close to 6 (six) minutes.

Then, if I undo and redo the change, the compile takes about 13 seconds.

I don't have any real time virus scanning stuff.

It's in Visual Studio. It's an i7.

Thanks

David

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile Time
Reply #1 - Feb 16th, 2018 at 5:09pm
Print Post  
All boards have different tool chains and build properties so always attach a verbose output so we can see what you are using.

I also suggest you attach a verbose output with slow and fast compile times so we can see what is happening.
  
Back to top
WWW  
IP Logged
 
davidcoward
Junior Member
**
Offline


Posts: 48
Joined: Oct 5th, 2012
Re: Compile Time
Reply #2 - Feb 16th, 2018 at 9:04pm
Print Post  
Thanks, Tim

I experimented a bit and removing "Deep Search Includes" reduced the time to a more respectable 90 seconds.

It's building for a Teensy.

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile Time
Reply #3 - Feb 16th, 2018 at 9:59pm
Print Post  
Great but it would still be useful to see where the tool chain is slow. Paul at teensy might be able to sort it. It used to be very fast.

1)

I tested with "vMicro>Compiler>High Speed Parallel Builds" enabled.

Full compile empty project (empty setup() and loop() was 34 seconds. Without deep search was 24 secs

2nd compile was .46 secs in release mode and 3 secs in debug mode.

Adding a method such as void test(){} to the .ino and recompiling varied between 1.5 secs and 3 secs depending upon deep search.

2)

With "vMicro>Compiler>High Speed Parallel Builds" OFF a full compile / rebuild of the empty project is 60 seconds

3)

The build output I have mentioned previously shows you when files are compiled and when cache is used. Other than give you some bench marks for the Teensy tool chain I can't help further without that info.
  
Back to top
WWW  
IP Logged
 
davidcoward
Junior Member
**
Offline


Posts: 48
Joined: Oct 5th, 2012
Re: Compile Time
Reply #4 - Feb 16th, 2018 at 11:31pm
Print Post  
Thanks Tim

I have the files, but don't have permission to post them...

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile Time
Reply #5 - Feb 17th, 2018 at 12:12am
Print Post  
is there an Update Session tab at the top of the screen?
  
Back to top
WWW  
IP Logged
 
davidcoward
Junior Member
**
Offline


Posts: 48
Joined: Oct 5th, 2012
Re: Compile Time
Reply #6 - Feb 17th, 2018 at 1:37am
Print Post  
Here we go
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile Time
Reply #7 - Feb 17th, 2018 at 12:43pm
Print Post  
Okay so your 90 secs does not have fast builds enabled and is building the entire core.

Can you explain what code file you modify for the 90 second build kicks in?
  
Back to top
WWW  
IP Logged
 
davidcoward
Junior Member
**
Offline


Posts: 48
Joined: Oct 5th, 2012
Re: Compile Time
Reply #8 - Feb 17th, 2018 at 4:36pm
Print Post  
For example, a value of a constant in the main .ino.

It seems to do that every time I reload the project into VS, make the simple mod, then build it. After that, it is OK, more or less.

The time is expended searching for and building libraries (even though these have not changed), then building the core. After that, building the project code is pretty quick. I don't know what "Deep Search Includes" does, but unchecking that seems to have made most difference. 


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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile Time
Reply #9 - Feb 17th, 2018 at 5:16pm
Print Post  
Can you please confirm if you have high speed parallel build enabled?
  
Back to top
WWW  
IP Logged
 
davidcoward
Junior Member
**
Offline


Posts: 48
Joined: Oct 5th, 2012
Re: Compile Time
Reply #10 - Feb 17th, 2018 at 5:41pm
Print Post  
Yes, I do now have Parallel Build enabled.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile Time
Reply #11 - Feb 17th, 2018 at 5:48pm
Print Post  
Great now if you click build>rebuild what is the compile time?

when we confirm the correct timing we can then investigate if you have disabled caching of core or libs etc.
« Last Edit: Feb 18th, 2018 at 9:04pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint