Mail Archives: djgpp/2000/08/22/09:30:18
"Rafał Maj" <r_maj AT poczta DOT onet DOT pl> wrote:
> Hi,
> I just wanted to know, if unloading & re-loading all data from memory will
> cause something like memory defragmentation ?
Not generally, and not reliably. Memory fragmentation can only be
avoided by applying your own, hand-made stragety, where *you* do the
bookkeeping of what size of blocks has been used. You can't generally
know such details of what happens inside malloc() and free().
OTOH, We're in 32bit paged protected memory, so memory fragmentation
is far less of a problem than it would be in, say, 16bit realmode.
You'll have to lose quite a lot of heap to fragmentation before it
actually becomes a problem.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -