avr: use Clang for compiling C and assembly files

This is one step towards an avr-gcc free TinyGo toolchain, something
that will make it easier to use AVR targets in TinyGo.
This commit is contained in:
Ayke van Laethem
2021-02-11 14:19:46 +01:00
committed by Ron Evans
parent 9c8ef5c48f
commit 801bd2a7ff
3 changed files with 16 additions and 2 deletions
+9
View File
@@ -2,6 +2,15 @@
; in Go.
; The reset vector is device-specific and is generated by tools/gen-device-avr.py.
; These definitions are necessary because LLVM does not yet know these register
; aliases. See: https://reviews.llvm.org/D96492
#define xl r26
#define xh r27
#define yl r28
#define yh r29
#define zl r30
#define zh r31
; Startup code
.section .text.__vector_RESET
.global __vector_RESET