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:
parent
9fa1d7af60
commit
bb1d68b551
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user