feat: implement llgo.stackSave

This commit is contained in:
Haolan
2025-09-15 13:38:33 +08:00
parent dba7bd498f
commit 2ec5653f5e
8 changed files with 119 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
package main
import (
"unsafe"
_ "unsafe"
)
//go:linkname getsp llgo.stackSave
func getsp() unsafe.Pointer
func main() {
sp := getsp()
println(sp)
}