Re: static, global variable memory allocation



On Feb 6, 9:40 pm, Eric Sosman <Eric.Sos...@xxxxxxx> wrote:
Richard Heathfield wrote On 02/06/07 14:03,:



santosh said:

<snip>

What a pointless interview question!

Well, I suppose you meant to say heap instead of head. The more proper
term is free store.

So I have always been led to believe, but I can find no reference to
this term in C89 (I didn't check C99, but I certainly recall that "free
store" was the allegedly canonical term well before C99 was ratified).

Does anyone know why "free store" is given canonical status?

I've got the opposite question: Does anyone know why
"heap" has come to mean just a big bucket of bytes, while
once upon a time it meant a specific kind of binary tree
(c.f. Heapsort)?

--
Eric.Sos...@xxxxxxx
Presumably to differentiate it from the stack - which is an ordered
pile and the heap isn't. Interestingly, stack seems to be mentioned
more often than heap, e.g. B reference manuals contain... erm... heaps
of stack?
--
WYCIWYG - what you C is what you get

.



Relevant Pages

  • [OT] Re: static, global variable memory allocation
    ... term is free store. ... Presumably to differentiate it from the stack - which is an ordered ... pile and the heap isn't. ... invented Heapsort. ...
    (comp.lang.c)
  • Re: static, global variable memory allocation
    ... I suppose you meant to say heap instead of head. ... The more proper ... store" was the allegedly canonical term well before C99 was ratified). ... Does anyone know why "free store" is given canonical status? ...
    (comp.lang.c)
  • Re: where? heap or stack?
    ... I wasn't bringing up the use of "heap" ... Eckel aren't aware of the distinction. ... If you thought I was arguing that heap and free store are the same, ...
    (comp.lang.cpp)
  • Re: static, global variable memory allocation
    ... I suppose you meant to say heap instead of head. ... store" was the allegedly canonical term well before C99 was ratified). ... stack and free store are not mentioned anywhere in the PDF od ... specifically differentiates between them on the Guru of the Week ...
    (comp.lang.c)
  • Re: Free Store of memory
    ... between Free Store area and heap area? ... all to do with memory allocation) - see make_heap et al. ...
    (microsoft.public.vc.language)