1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-23 20:02:22 +00:00

fix: unrecognized instruction "NO_LOCAL_POINTERS"

This commit is contained in:
hopehook 2022-01-01 11:45:16 +08:00
parent 9fa1d7af60
commit bb1d68b551

View File

@ -289,6 +289,8 @@ L_END:
Go语言的编译器在生成函数的机器代码时会在开头插入一小段代码。因为sum函数也需要深度递归调用因此我们删除了NOSPLIT标志让汇编器为我们自动生成一个栈扩容的代码
```
#include "funcdata.h"
// func sum(n int) int
TEXT ·sum(SB), $16-16
NO_LOCAL_POINTERS