To use AVR crosscompiler, install next packages: avr-libc, binutils-avr, gcc-avr
avr-libc includes examples to demonstrate how it works.