Main Content

Trimming the fat from avr-gcc code

Although writing in AVR assembly makes it easy to write programs that fit in a small codespace, writing in C and using AVR Libc is more convenient. This article outlines how to write C code that avr-gcc will build to a minimal size. There are a number of other guides for writing small AVR code including AVR 4027, but none of them seem to address the overhead of avr-gcc’s start-up library (gcrt1).”

Link to article