yet another way to use c/asm in golang, translate asm to goasm
- x86 arch
- use my fork https://github.com/kkHAIKE/keystone/tree/fix_adr , it's fix ADR instruction at arm64.
- use homebrew in macos:
brew edit keystone
- replace
head "https://github.com/keystone-engine/keystone.git", branch: "master"
tohead "https://github.com/kkHAIKE/keystone.git", branch: "fix_adr"
brew install --head keystone
let us wait next release version
this commit fix WORD $0
bug:
https://github.com/golang/go/commit/9f0f87c806b7a11b2cb3ebcd02eac57ee389c43a
export CGO_CFLAGS=`pkg-config --cflags keystone`
export CGO_LDFLAGS=`pkg-config --libs keystone`
go install