what is the Diff between heap and free store?
Thanks
Veena
[ Send an empty e-mail to c++-...@netlab.cs.rpi.edu for info ]
[ about comp.lang.c++.moderated. First time posters: do this! ]
> Hello,
>
> what is the Diff between heap and free store?
>
> Thanks
> Veena
In everyday use there is no real difference. "free store" is a term
with a specific meaning used in the C++ language standard. "heap" is
a common usage term to refer to the free store, but "heap" is not used
in the C++ language standard.
--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
Nothing. They both refer to Level 3 or System Memory.
[sig and banner deleted-mod]
> what is the Diff between heap and free store?
In the context of C++, they are the same.
Ronald
--
To reduce spam in my inbox, the address given in the Reply-To: header is
not guaranteed to live longer than 1 month after the article was
posted. My permanent address is (after deleting the XXX):
Ronald Otto Valentin Fischer <rov...@operamail.com>
> what is the Diff between heap and free store?
According to another recent thread on the same issue it would appear
to be nothing (i.e. the terms are interchangeable).
OTOH if a specific C++ environment's new/delete do not use the same
memory pool as malloc/free you might find it useful to use one of
these terms to name the new/delete memory pool and the other to name
the malloc/free memory pool (of course it won't guarantee that anyone
else you communicate with will be sure which one you are referring to
:).
Regards,
Ian Knowles (remove the .nospam to reply)
Thanks
Anand
No, those are not answers, they are just Herb's opinions. In the context
of his own writing that terminology is fine but it carries no weight
anywhere else.
Francis Glassborow ACCU
64 Southfield Rd
Oxford OX4 1PA +44(0)1865 246490
All opinions are mine and do not represent those of any organisation
> what is the Diff between heap and free store?
I'm no expert, but the way I see it is:
* allocations from the heap are destroyed using free()
* allocations from the free store (via operator new) are destroyed
using operator delete
Doesn't this lead to quite a concrete distinction if 'new' and
'delete' are overridden?
-- Barry
> > what is the Diff between heap and free store?
> Nothing. They both refer to Level 3 or System Memory.
Could you please explain what you mean by this. All memory is managed
by the system, at least on the systems I know. And where any
particular piece of memory is at any given moment (cache, main memory,
paged to disk, etc.) will depend on the system, and will change in
time.
--
James Kanze mailto:ka...@gabi-soft.de
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
Ziegelhüttenweg 17a, 60598 Frankfurt, Germany Tel. +49(069)63198627