Re: Heap? what does it mean?

From: Karl Heinz Buchegger (kbuchegg_at_gascad.at)
Date: 07/09/04


Date: Fri, 09 Jul 2004 09:51:55 +0200

Snake wrote:
>
> Hello experts,
> I have a quick question about a thing that I am not sure I fully I
> understand. What does a heap mean?I mena when it says, the memory location
> was allocated on the heap, then what does that mean?

That is was allocated on the free store.
That means: Your program has an area, the free store, which is just
memory reserved for nothing special. Whenever you need some memory,
you just ask the runtime system for it. The runtime system will search
for a nice place in that free store, mark it as reserved and return
a pointer to it to your program.

-- 
Karl Heinz Buchegger
kbuchegg@gascad.at


Relevant Pages

  • Re: Heap? what does it mean?
    ... What does a heap mean?I mena when it says, the memory location ... >That is was allocated on the free store. ... >you just ask the runtime system for it. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: classes, pointers, vectors, and memory allocation
    ... probably a chunk of memory allocated on the 'heap' (called the ... 'free store' by the C++ standard). ... However, many objects allocate memory ...
    (comp.lang.cpp)
  • Re: where? heap or stack?
    ... >refer to standard data structures, not to regions of memory. ... they use the word "heap" synonymously with "free ... on/from the free store", they consistently say "from the heap", use the ...
    (comp.lang.cpp)
  • Re: where? heap or stack?
    ... The following summarizes a C++ program's major distinct memory areas. ... Note that some of the names (e.g., "heap") do not appear as such in ... "free store" because the draft deliberately leaves unspecified the ... or any of calloc, malloc, or realloc, declared in. ...
    (comp.lang.cpp)
  • Re: Lcc-win32 extensions to C
    ... compiled with a C++ compiler or a C compiler. ... Yes, but if you do not use GC, you allocate more memory than needed to ... Using a non-GC'ed heap+ a GC'ed heap requires also more memory... ... Collector, since GC technologies are much more advanced than simple ...
    (comp.std.c)