Optimization flags arduino 1.6.5

Thread Starter

Vindhyachal Takniki

Joined Nov 3, 2014
487
1. I have been reading this:
http://www.instructables.com/id/Arduino-IDE-16x-compiler-optimisations-faster-code/?ALLSTEPS

2. Page 6 states that platform.txt exist in:
C:\Users\XXXX\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.x\platform.txt

However I have found that inside mu PC; C:\Users\XXXX\AppData\Roaming\Arduino15 , there is no folder name packages. I have searched in hidden files also.

3. However I have found platform.txt file in:
C:\Program Files\Arduino\hardware\arduino\avr

Not sure if I have to edit in this. I have attached a copy.

4. There are three places where -Os is found, line 23,26 & 30.
So should I change at these 3 places only depending on requirement:
No optimization: -O0
speed optimization: -O3
size optimization: -Os
balance optimization: -O2
 

Attachments

Top