[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ Memory allocation
From: |
Ulrich Eckhardt |
Subject: |
Re: C++ Memory allocation |
Date: |
Wed, 28 Feb 2007 07:45:27 +0100 |
User-agent: |
KNode/0.10.4 |
group.JQ@gmail.com wrote:
> I was told that when we allocate the memory (new) at first time
> in c++, the c++ library will allocate a big block of memory. Later on,
> when we allocate more memory, the c++ library just allocates them from
> that big block of memory instead of getting from the operating system.
With no context further than 'C++' this is not generally true. What you
describe is not even typical for memory pools I have heard of. BTW, what
is the relation to the GCC?
Uli
--
http://gcc.gnu.org/faq.html
http://parashift.com/c++-faq-lite/