# compile... avr-gcc -c -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=1000000UL -Wa,-adhlns=pine_car.lst -mmcu=attiny2313 -std=gnu99 pine_car.c -o pine_car.o # link... avr-gcc -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=1000000UL -Wa,-adhlns=pine_car.o -mmcu=attiny2313 -std=gnu99 pine_car.o --output pine_car.elf -Wl,-Map=.map,--cref -L. -lutil # check sizes so no surprises! avr-size pine_car.elf # in case i want to debug at the assembly level... avr-nm pine_car.elf | sort -u > pine_car.nm # create hex file... avr-objcopy -O ihex -R .eeprom pine_car.elf pine_car.hex # burn, baby, burn... avrdude -p attiny2313 -c usbtiny -U flash:w:pine_car.hex