4 ms·
This question reminds me of this Twitter thread, started by @raymondh: Programmer survey: Do visualize consecutive memory locations as running left-to-right, r
by vram22 11y ago
This question reminds me of this Twitter thread, started by @raymondh:
Programmer survey: Do visualize consecutive memory locations as running left-to-right, right-to-left, top-to-bottom, or bottom-to-top?
https://mobile.twitter.com/raymondh/status/695103737539375104 https://mobile.twitter.com/raymondh/status/69510373753937510...
- gnuvince 11y agoLeft-to-right for me; vertical is confusing because I like to put address 0 at the top and address MAX at the bottom, but then the stack "grows down" and I get confused.
- mcguire 11y agoStrangely, on the processors I'm familiar with, the stack would grow up in that orientation.
- scott_s 11y agoLeft-to-right when I'm reasoning about general address spaces, but top-to-bottom when reasoning about the stack specifically.
- vram22 11y agoGood reasoning for common processors that grow the stack downwards. Those are what I've worked with. Mentioning it because I saw about some other types in this thread.