Mail Archives: djgpp/1997/07/22/17:35:55
Nate Eldredge wrote:
>
> AFAIK, no you don't. malloc uses sbrk to get memory from the DPMI server. It
> gets *that* memory in powers of 2 to reduce overhead, but then parcels it
That's correct.
> out to malloc calls as it's needed. So each structure should just be using a
> 34K block, it's just that malloc grabbed some extra which will be given to
> the next request.
But that's NOT correct. malloc() returns also the power of two aligned
block to the user.
Robert
--
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post: Am Berg 3, D-09573 Dittmannsdorf *
* e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE *
* WWW: http://www.tu-chemnitz.de/~rho *
*****************************************************************
- Raw text -