Reply-To: avr-gcc-list@nongnu.org On 04.06.18 19:19, Benoit Steinmetz wrote: > > p.s: I have recently started a topic on avrfreaks about this issue [2].
Your link has caused me to visit avrfreaks for the second time in a decade, leading me to wonder if answers would appear here. Normally I'd point to the useful software admonition "Be conservative in what you output, and liberal in tolerance of input.", but I see that your target is an ATtiny2313. With only 1K instructions available, I'm surprised to see any 'C' used at all, and understand the desire to trim every superfluous instruction. One question: Does the omission of sign extension by avr-gcc remain without optimisation for size? My current project, also on an ATtiny2313, is 100% assembler - simplified event scheduler, state machines, HAL, the lot. But at least you could fall back to an ATtiny4313 if the 'C' blows out, I guess. Erik _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list