mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 11:37:46 +00:00
db4de46d88
This is useful for the next commit, to get it to compile on all systems.
17 lines
301 B
Go
17 lines
301 B
Go
// +build avr
|
|
|
|
package runtime
|
|
|
|
const GOARCH = "arm" // avr pretends to be arm
|
|
|
|
// The bitness of the CPU (e.g. 8, 32, 64).
|
|
const TargetBits = 8
|
|
|
|
// Align on a word boundary.
|
|
func align(ptr uintptr) uintptr {
|
|
// No alignment necessary on the AVR.
|
|
return ptr
|
|
}
|
|
|
|
func getCurrentStackPointer() uintptr
|