github.com/aykevl/tinygo@v0.5.0/src/runtime/arch_avr.go (about)

     1  // +build avr
     2  
     3  package runtime
     4  
     5  import (
     6  	"unsafe"
     7  )
     8  
     9  const GOARCH = "avr"
    10  
    11  // The bitness of the CPU (e.g. 8, 32, 64).
    12  const TargetBits = 8
    13  
    14  //go:extern _heap_start
    15  var heapStartSymbol unsafe.Pointer
    16  
    17  //go:extern _heap_end
    18  var heapEndSymbol unsafe.Pointer
    19  
    20  var (
    21  	heapStart = uintptr(unsafe.Pointer(&heapStartSymbol))
    22  	heapEnd   = uintptr(unsafe.Pointer(&heapEndSymbol))
    23  )
    24  
    25  // Align on a word boundary.
    26  func align(ptr uintptr) uintptr {
    27  	// No alignment necessary on the AVR.
    28  	return ptr
    29  }