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 Is it not possible to configure compiler options (Read 1972 times)
Jan Friberg
Junior Member
**
Offline


Posts: 72
Joined: Dec 13th, 2013
Is it not possible to configure compiler options
Feb 19th, 2014 at 2:37pm
Print Post  
I have problem with code size getting to big. Therefore I looked up compiler options and found that I could set it for optimizing for code size. But the result is exactly the same code size no matter which option I choose.
My impression is that the compiler is bad at optimizing for code size. Is this true ? Am I stuck with it ?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Is it not possible to configure compiler options
Reply #1 - Feb 19th, 2014 at 2:49pm
Print Post  
Hi Jan,

We are looking at giving you more control from the UI over all elements of the build process.

Yes you are right, I am no expert but I hear that the Arduino defaults are not the most optimized but are designed to work for all code uses.

You can change the settings in an arduino 1.5 Ide and/or it is also possible to create your own entire platform definition that shares the tool chain of the default (read more on arduino.cc for the latter)

If you open arduinoide/hardware/arduino/avr/platform.txt and boards.txt with a text editor, such as notepad++, you can alter the settings. 

Look for the ".pattern" properties in platform.txt. The system simply merges {properties} that are defined from within boards.txt and platform.txt.

You can also create your own board in boards.txt by copying and "renaming.". There are a few board level flags but not enough so hacking the platform.txt patterns directly is more flexible but affects every avr compilation.

If you alter the config you can click "tools>visual micro>reload tool chains" or restart the ide


Another option, maybe for the future

If you want to keep a normal arduino ide config and a seperate optimized ide and you have a visual micro + license then you can extend the apps list with your own Ide registration such as "Arduino 1.5.x Optimized"
« Last Edit: Feb 19th, 2014 at 2:51pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint