Hello,
I have recently purchased a Teensy 3.1 and am currently porting my Arduino Due program over to it. When I compile my program for the Due, it ends up around 100Kb in size. When I compiled for Teensy using a Makefile based on the one found in hardware/teensy/cores/teensy3, the binary is nearly 300Kb which is too big!
I added this to the compiler options on line 11
-ffunction-sections -fdata-sections
Now it is only 80Kb, which is fantastic. Perhaps the makefile shipped with teensyduino should have these options added? It might save someone some premature disappointment.
Cheers, Camel
I have recently purchased a Teensy 3.1 and am currently porting my Arduino Due program over to it. When I compile my program for the Due, it ends up around 100Kb in size. When I compiled for Teensy using a Makefile based on the one found in hardware/teensy/cores/teensy3, the binary is nearly 300Kb which is too big!
I added this to the compiler options on line 11
-ffunction-sections -fdata-sections
Now it is only 80Kb, which is fantastic. Perhaps the makefile shipped with teensyduino should have these options added? It might save someone some premature disappointment.
Cheers, Camel