# Language Mechanics On Stacks And Pointers

DevFeed: [Language Mechanics On Stacks And Pointers](<https://devfeed.tech/articles/language-mechanics-on-stacks-and-pointers-22125.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2017/05/language-mechanics-on-stacks-and-pointers.html>)

Published: 2017-05-18T00:00:00Z

Content type: article

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>)

Tags: [allows](<https://devfeed.tech/tags/allows.md>), [ardan-labs](<https://devfeed.tech/tags/ardan-labs.md>), [benefit](<https://devfeed.tech/tags/benefit.md>), [blog](<https://devfeed.tech/tags/blog.md>), [call](<https://devfeed.tech/tags/call.md>), [context](<https://devfeed.tech/tags/context.md>), [control](<https://devfeed.tech/tags/control.md>), [escape-analysis](<https://devfeed.tech/tags/escape-analysis.md>), [go](<https://devfeed.tech/tags/go.md>), [go-programming](<https://devfeed.tech/tags/go-programming.md>), [golang](<https://devfeed.tech/tags/golang.md>), [heaps](<https://devfeed.tech/tags/heaps.md>), [memory](<https://devfeed.tech/tags/memory.md>), [performance](<https://devfeed.tech/tags/performance.md>), [philosophy](<https://devfeed.tech/tags/philosophy.md>), [pointers](<https://devfeed.tech/tags/pointers.md>), [programming](<https://devfeed.tech/tags/programming.md>), [semantics](<https://devfeed.tech/tags/semantics.md>), [series](<https://devfeed.tech/tags/series.md>), [simple](<https://devfeed.tech/tags/simple.md>), [software](<https://devfeed.tech/tags/software.md>), [this](<https://devfeed.tech/tags/this.md>), [used](<https://devfeed.tech/tags/used.md>), [value](<https://devfeed.tech/tags/value.md>), [write](<https://devfeed.tech/tags/write.md>)

## AI overview

The excerpt explains that each Go function operates in its own memory frame, with direct access to its frame and indirect access to shared memory outside it. Function calls transition between frames, and arguments are passed by value: the callee receives a copy of the value shown at the call site. The author presents this as a readable model that makes the cost of function transitions easier to reason about. The article is identified as the first part of a series on Go pointers and memory mechanics; the supplied text does not show the promised code example or further discussion.

## Source excerpt

Prelude This is the first post in a four part series that will provide an understanding of the mechanics and design behind pointers, stacks, heaps, escape analysis and value/pointer semantics in Go. This post focuses on stacks and pointers. Index of the four part series: Language Mechanics On Stacks And Pointers Language Mechanics On Escape Analysis Language Mechanics On Memory Profiling Design Philosophy On Data And Semantics Introduction I'm not going to sugar coat it, pointers are difficult to comprehend. When used incorrectly, pointers can produce nasty bugs and even performance issues. This is especially true when writing concurrent or multi-threaded software. It's no wonder so many languages attempt to hide pointers away from programmers. However, if you are writing software in Go, there is no way for you to avoid them. Without a strong understanding of pointers, you will struggle to write clean, simple and efficient code.