Den Optimierungsgrad stelle ich im makefile ein, bei mir sieht das so aus:
Code:
# Optimization level, can be [0, 1, 2, 3, s]. 0 turns off optimization.
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
OPT = 2
Im Programm selbst muss man nichts vorsehen, ausser darauf zu achten das nicht zuviel wegoptimiert wird.