How to reduce the size of the code for Leonado?

How to reduce the size of the code for Leonado?
For the same sketch,it can be upload to UNO, but fail to Leonade because of its size. Maybe, I'll write the larger code for Leonado. Any suggestion would be very appreciated.

zintiger:
How to reduce the size of the code for Leonado?
For the same sketch,it can be upload to UNO, but fail to Leonade because of its size. Maybe, I'll write the larger code for Leonado. Any suggestion would be very appreciated.

The Leonardo has it's own built in USB hardware so it's bootloader will always be larger then the bootloader for a UNO, so there will always be a difference in how large a sketch one can run on a Uno Vs a Leonardo board. However there are usually ways to make a sketch smaller with changes in how you program the sketch by changing software algorithms or changing of functions and/or libraries used in the sketch.

Lefty