diff options
author | Ayke van Laethem <[email protected]> | 2022-11-04 14:50:26 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-11-06 09:05:05 +0100 |
commit | df888acd5eff0eb5a70ef87ba083f0f15737d120 (patch) | |
tree | f83101a0e4b7fbdfa0ecc36794478ba3888c24a8 /targets/atmega1284p.json | |
parent | b9bb605257a0faa128dd7e07a9bb32a7bbf28d9a (diff) | |
download | tinygo-df888acd5eff0eb5a70ef87ba083f0f15737d120.tar.gz tinygo-df888acd5eff0eb5a70ef87ba083f0f15737d120.zip |
avr: drop GNU toolchain dependency
- 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.
Diffstat (limited to 'targets/atmega1284p.json')
-rw-r--r-- | targets/atmega1284p.json | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/targets/atmega1284p.json b/targets/atmega1284p.json index d78d6a2a9..501fb58d1 100644 --- a/targets/atmega1284p.json +++ b/targets/atmega1284p.json @@ -4,9 +4,8 @@ "build-tags": ["atmega1284p", "atmega"], "serial": "uart", "ldflags": [ - "-mmcu=avr51", - "-Wl,--defsym=_bootloader_size=0", - "-Wl,--defsym=_stack_size=512" + "--defsym=_bootloader_size=0", + "--defsym=_stack_size=512" ], "linkerscript": "src/device/avr/atmega1284p.ld", "extra-files": [ |