Want to try gcc 4.8.3 ?

Status
Not open for further replies.

Frank B

Senior Member
For Windows:

If you want to try gcc 4.8.3 for teensy3.x, you can donwload it directly from ARM:

- https://launchpad.net/gcc-arm-embedded on the right side, choose gcc-arm-non..4-win32.zip

- create a backup of Arduino\hardware\tools\arm-none-eabi
(you can use this backup later to restore your original version)

- extract the downloaded zipfile and copy its contents to Arduino\hardware\tools\arm-none-eabi
(overwrite all duplicate files)

Voilá :)
USE IT AT YOUR OWN RISK :)

I testet only little sketches so far, they worked.
Codesize was smaller, a little bit faster, ram-usage more.
I don't know, if 4.8 has more optimization-switches, mabye we could look at it.
 
Last edited:
Hi,

i just tried -flto, works like a charm. much less codesize, ram usage as before or less.
I you want to use it with Teensyduino, add the following lines to boards.txt
Code:
teensy31.build.cppoption2=-flto
teensy31.build.linkoption2=-flto
 
Status
Not open for further replies.
Back
Top