Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ch02life:main.md init 部分相关内容已过时 #75

Open
cnbailian opened this issue Jan 7, 2021 · 2 comments
Open

ch02life:main.md init 部分相关内容已过时 #75

cnbailian opened this issue Jan 7, 2021 · 2 comments

Comments

@cnbailian
Copy link

动机

init 相关内容已过时

需求说明

runtime.main 中关于 init 调用部分有更新,包括编译器部分。
相关 commit:golang/go@d949d0b
本人水平有限,勉强能看懂一些,但还远远达不到能提 PR 修改此处。期待相关更新。

ps.这个项目能重启真是太好了 🎉

@changkun
Copy link
Member

changkun commented Jan 7, 2021

你好,感谢提醒。确实这部分内容已经过时,init 已经不再是生成代码的方式来,运行时会通过直接调用编译器准备好的 main_inittask 入口地址来直接调用这些初始化函数,这个变化是在 1.13 完成的。

本书今年会陆续对内容进行大量修订和重写,欢迎点击 Watch 保持关注。

@hoset
Copy link

hoset commented Jan 7, 2021

期待

@changkun changkun added this to Planned in Organization Management Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

3 participants