mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-20 20:39:06 +00:00
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:
committed by
Ron Evans
parent
9c8ef5c48f
commit
801bd2a7ff
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user