Optimization flags arduino 1.6.5 !

Discussion in 'Embedded Systems and Microcontrollers' started by iseovodoia, Nov 21, 2015.

  1. iseovodoia

    Thread Starter New Member

    Nov 21, 2015
    1
    0
    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
     
Loading...