I found a script like this:
avr-gcc -g -Os -mmcu=“microcontroller” -c “filename”.c<br>avr-gcc -g -mmcu=“microcontroller” -o “filename”.elf “filename”.o<br>avr-objcopy -j .text -j .data -O ihex “filename”.elf “filename”.hex<br>avr-size --format=avr --mcu=“microcontroller” “filename”.elf Here the filename that we want to compile is: led.c and the microcontroller is: atmega32So the code becomes- avr-gcc -g -Os -mmcu=atmega32 -c led.c<br>avr-gcc -g -mmcu=atmega32 -o led.elf led.o<br>avr-objcopy -j .text -j .data -O ihex led.elf led.hex<br>avr-size --format=avr --mcu=atmega32 led.elf
Should I write it this way, or I could add a "Enter" at every "<br>"?