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 compilier switches (Read 2163 times)
Tom How
Newbies
*
Offline


Posts: 2
Joined: Jan 30th, 2013
compilier switches
Aug 4th, 2014 at 12:24pm
Print Post  
Using visual micro under both visual studio 2008 and 2012, I find that the avr compiliers are always called with the -Os switch (optimise for size) 

Is it possible to get visual micro to use the -O2 or -O3 optimisation switches instead?

Using a Mega 2560 so would like compile more for performance that size. Clearly I can do this sort of compilation manually, but would like to know if it is possible to set different compilier options in Visal micro.

Thanks


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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: compilier switches
Reply #1 - Aug 4th, 2014 at 1:22pm
Print Post  
Hi Tom,

If you are using the Arduino 1.5.x system then the build process is entirely defined within the config files which you can easily extend or change.

It is quite easy to edit the existing config in arduino/haradware/arduino/avr/platform.txt

or if you want to preserve Arduino "as is" there are many options but the simplest to describe might be to copy the arduino/haradware/arduino/avr folder then edit the boards.txt to contain only one 2560 board with a unique name and then edit the platform.txt

In platform.txt you will find the compiler switches
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint