HN Hall of Fame Weekly email

Anatomy of a Program in Memory

duartes.org Essays & writing Essays & articles Computer science Candidate
Screenshot of duartes.org captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 6 calendar years, with breakout response in 2 of them.

submissions
10
submitters
7
observed span
2009–2021
peak thread · 23 comments
134 pts
latest 20+ return · 2021-08-10
46 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

Submit more articles like this one and less Web 2.0 gossip please.

brl·134-point thread·

Really great article and blog. > You can examine binary images using the nm and objdump commands to display symbols, their addresses, segments, and so on. You can also use my new tool Bloaty McBloatface (https://github.com/google/bloaty). Check out the -v option especially, which will dump a memory map of both the file domain and the VM address domain: $ ./bloaty `which ls` -v -d segments FILE MAP: [0, 19d44] LOAD [RX], LOAD [RX] [19d44, 19df0] [None], [Unmapped] [19df0, 1a5f4] LOAD…

This may not be entirely related, but I've been building an open-source kernel in z80 assembly for three and a half years now: https://github.com/KnightOS/kernel I might chime in with a perspective of someone working on 70s hardware without memory protection, ring modes, or enough RAM to page it around. In my system, all processes run as root (since we can't stop them from doing so on a z80), and share one big memory block. The kernel takes up the first…

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…

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
434

reference only — not used in Hall rules or ranking

Total comments
40

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2009-01-27Anatomy of a Program in MemoryFirst breakout · Best threadsigna1113423
2013-04-10Anatomy of a Program in Memory (2009)opdemand10
2013-06-03Anatomy of a Program in Memorychris_wot20
2014-01-19Anatomy of a Program in Memoryrikelmens815
2015-04-07Anatomy of a Program in Memory (2009)altern8200
2015-08-28Anatomy of a Program in Memory (2009)cptwunderlich171
2016-02-17Anatomy of a Program in Memory (2009)Tomte20
2016-11-20Anatomy of a Program in Memory (2009)Tomte1296
2021-01-09Anatomy of a Program in Memory (2009)Tomte20
2021-08-10Anatomy of a Program in Memory (2009)Latest 20+ point returnTomte465