Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Anatomy of a Program in Memory (2009) (duartes.org)
46 points by Tomte on Aug 10, 2021 | hide | past | favorite | 5 comments


All the diagrams that show the stack "above" the heap may be an example of a widespread "UNIX-ism"; and indeed, there are many questions on StackOverflow and the like from semi-confused beginners wondering why they see heap allocations having higher addresses than ones on the stack.

In Windows, stacks are usually very low in memory, even below the process image itself (which is normally loaded at 4MB[1]), and heaps are above. Of course, if you have many threads, stack and heap ranges can end up anywhere, but in the simplest single-thread case the layout is already very different from the "classic" image-heap-stack order.

[1]https://devblogs.microsoft.com/oldnewthing/20141003-00/?p=43...


Images are served over HTTP while the website is served over HTTPS. Chrome blocks them.


Running it through the Web Archive turns the whole thing into HTTP: http://web.archive.org/web/20210417040704/https://manybutfin...


Redirects to manybutfinite.com





Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: