Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

OahcUil94/golang-anatomy

Repository files navigation

Golang Anatomy

  • 记录时间: 2020-07-31
  • 版本信息: go1.14.6

https://golang.org/src/

目的

  • 写出更高效的代码
  • 更全面的审视代码

内存区域划分

                                      + - - - - - - - - -+
                                      ' memory layout:   '
                                      '                  '
+-------------------------------+     ' +--------------+ '
| Scheduler + Signal Processing | --> ' |    Stack     | '
+-------------------------------+     ' +--------------+ '
+-------------------------------+     ' +--------------+ '
|  Function Args + Local Vars   | --> ' |    Frame     | '
+-------------------------------+     ' +--------------+ '
+-------------------------------+     ' +--------------+ '
|      Heap + Global Vars       | --> ' |     Data     | '
+-------------------------------+     ' +--------------+ '
+-------------------------------+     ' +--------------+ '
|             Code              | --> ' |     Text     | '
+-------------------------------+     ' +--------------+ '
                                      '                  '
                                      + - - - - - - - - -+

About

剖析Go语言

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published