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 Compile Speed on Arduino Portenta (Read 2345 times)
rs 77tmp
Junior Member
**
Offline


Posts: 22
Joined: Apr 20th, 2022
Compile Speed on Arduino Portenta
Aug 30th, 2022 at 11:49pm
Print Post  
I have a project that is about 10 files, and uses a number of libraries. It can take 3-4 minutes to do a compile, because most of the time is spent doing Deep Search for libraries.

Is this normal behavior.  I have Deep Search for libraries ticked, as I think I require it (read if I have #defines etc in the libraries that perform conditional compiles it is required).
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile Speed on Arduino Portenta
Reply #1 - Aug 31st, 2022 at 2:15am
Print Post  
Please provide the information in yellow near the top of this page.
  
Back to top
WWW  
IP Logged
 
rs 77tmp
Junior Member
**
Offline


Posts: 22
Joined: Apr 20th, 2022
Re: Compile Speed on Arduino Portenta
Reply #2 - Aug 31st, 2022 at 7:18pm
Print Post  
Send file by email
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile Speed on Arduino Portenta
Reply #3 - Aug 31st, 2022 at 7:38pm
Print Post  
Thanks, 

1)

Please switch to Release for these tests. That simplies the build process so that we can more easily see what is happening. After switching Release build twice and then send the output again.

2)

Confirm what you click to start a build?

  
Back to top
WWW  
IP Logged
 
rs 77tmp
Junior Member
**
Offline


Posts: 22
Joined: Apr 20th, 2022
Re: Compile Speed on Arduino Portenta
Reply #4 - Aug 31st, 2022 at 9:09pm
Print Post  
File sent by email

I press the Build button, or the one next to it the Build and Run.

Now, debugging with the J-Link - I go through Debug->Start Debugging.


The compile in this case took 9m40s
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: Compile Speed on Arduino Portenta
Reply #5 - Sep 1st, 2022 at 2:57pm
Print Post  
Thanks for the logs.

Can you restart your PC, and then delete the folder below (and all subfolders and files):
Code
Select All
nvie_m7_mbed_portenta 



Then perform two compilations in Release mode, and send us the log from the second (which should be faster than the first)?
« Last Edit: Sep 1st, 2022 at 3:14pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile Speed on Arduino Portenta
Reply #6 - May 6th, 2023 at 2:46am
Print Post  
Please install the LATEST version. It gives full control over compiler cache and more importantly which folders are searched for libraries.

You should be able to dramatically reduce the subsequent build times.

New releases

There will be more docs published about all the settings but the example settings should make experimentation easy.

  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint