chai2010 / advanced-go-programming-book

:books: 《Go语言高级编程》开源图书,涵盖CGO、Go汇编语言、RPC实现、Protobuf插件实现、Web框架实现、分布式系统等高阶主题(完稿)
https://chai2010.cn/advanced-go-programming-book/
BSD 2-Clause "Simplified" License
19.41k stars 3.21k forks source link

fix: unrecognized instruction "NO_LOCAL_POINTERS" #566

Closed hopehook closed 2 years ago

hopehook commented 2 years ago

NO_LOCAL_POINTERS 依赖 "funcdata.h" 的导入,参考 issue:【3.8】Go汇编代码无法运行

添加 #include "funcdata.h" 导入语句后,本地 go run,go build 均能正常运行,不需要另外拷贝 funcdata.h 文件。

本地环境:go version go1.15.14 linux/amd64

cch123 commented 2 years ago

感谢!