
- Use compiler-rt and picolibc instead of avr-libc. - Use ld.lld instead of avr-ld (or avr-gcc). This makes it much easier to get started with TinyGo on AVR because installing these extra tools (gcc-avr, avr-libc) can be a hassle. It also opens the door for future improvements such as ThinLTO. There is a code size increase but I think it's worth it in the long run. The code size increase can hopefully be reduced with improvements to the LLVM AVR backend and to compiler-rt.
8 строки
240 Б
JSON
8 строки
240 Б
JSON
{
|
|
"inherits": ["atmega1280"],
|
|
"build-tags": ["arduino_mega1280"],
|
|
"ldflags": [
|
|
"--defsym=_bootloader_size=4096"
|
|
],
|
|
"flash-command":"avrdude -c arduino -b 57600 -p atmega1280 -P {port} -U flash:w:{hex}:i -v -D"
|
|
}
|