mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 23:43:40 +00:00
runtime: use LLVM intrinsic to read the stack pointer
This should result in smaller code.
This commit is contained in:
committed by
Ron Evans
parent
3d73ee77d3
commit
74b20ca234
@@ -17,7 +17,7 @@ func align(ptr uintptr) uintptr {
|
||||
}
|
||||
|
||||
func getCurrentStackPointer() uintptr {
|
||||
return arm.AsmFull("mov {}, sp", nil)
|
||||
return uintptr(stacksave())
|
||||
}
|
||||
|
||||
// Documentation:
|
||||
|
||||
Reference in New Issue
Block a user