Has anybody got an idea why the area of main memory where objects are allocated is referred to as the heap. I can understand the rationale for that of the stack LIFO but would like to know what the rationale is for the 'heap' name.
From the information found at StackOverflow - What is the origin of the term “heap” for the free store? and Why are two different concepts both called “heap”?
This information at least dates back to Knuth in 1975 referencing other (unnamed) authors:
There is also mention of Wijngaarden discussion on Algol in the early 1970s referring to the available memory pool as a heap (
Implementing the ALGOL 68 heap from 1970 may be of use in tracking down some aspects of word origin, though much if it is behind a paywall.