1 min read 59 words Updated Nov 14, 2026 Created Nov 30, 2026
#Go#OS#Programming#review

See also: Stack vs. Heap

  • Stack is fast, automatic memory bound to a function call
  • Heap is slower, and keeps items which need to remain after a function is done. It is shared.

For a function call, memory is reserved, called a "frame".

Go deals with stack and heap allocation automatically, but knowing the theory is important.