Add AVR support

This requires support in LLVM, as AVR support is still experimental. For
example, in bindings/go/build.sh, add
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=AVR to cmake_flags.
This commit is contained in:
Ayke van Laethem
2018-06-07 18:35:54 +02:00
parent 802302a1aa
commit 90fb0ee4eb
264 changed files with 105721 additions and 3 deletions
+9
View File
@@ -0,0 +1,9 @@
package avr
// Magic type recognozed by the compiler to mark this string as inline assembly.
type __asm string
// Run the given assembly code. The code will be marked as having side effects,
// as it doesn't produce output and thus would normally be eliminated by the
// optimizer.
func Asm(asm __asm)