Posted in

【限时解密】Go硬件开发的“暗面能力”:利用//go:build约束与linker script精准控制ROM/RAM布局(附SVD文件自动解析脚本)

第一章:Go语言能开发硬件嘛 G … 【限时解密】Go硬件开发的“暗面能力”:利用//go:build约束与linker script精准控制ROM/RAM布局(附SVD文件自动解析脚本)Read more

Posted in

Go二进制体积动辄30MB?5个UPX+linker flag+strip组合方案实测:最小体积纪录1.87MB(含musl静态链接)

第一章:Go二进制体积膨胀的根源 … Go二进制体积动辄30MB?5个UPX+linker flag+strip组合方案实测:最小体积纪录1.87MB(含musl静态链接)Read more

Posted in

【私密分享】未公开的Go linker flag组合:-H=windowsgui -s -w -buildmode=exe,让exe体积直降42%

第一章:Go语言可视化exe的构 … 【私密分享】未公开的Go linker flag组合:-H=windowsgui -s -w -buildmode=exe,让exe体积直降42%Read more

Posted in

Mac用户注意:Go 1.21+启用-z选项后编译失败?这是LLVM ld64 1000+版本与Go linker的ABI不兼容漏洞

第一章:Mac用户Go编译失败现 … Mac用户注意:Go 1.21+启用-z选项后编译失败?这是LLVM ld64 1000+版本与Go linker的ABI不兼容漏洞Read more