delorie.com/archives/browse.cgi | search |
From: | rs AT redplanet DOT com DOT cy (Rotes Sapiens) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | mem alloc taking up power of 2 |
Date: | Wed, 16 Jul 1997 12:25:50 GMT |
Organization: | Customer of Connect.com.au P/L, Adelaide, Australia |
Lines: | 9 |
Message-ID: | <33cc4f06.4823733@192.189.54.145> |
NNTP-Posting-Host: | spider31.cobweb.com.au |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
When I malloc a structure that takes up say 34k, djgpp or dpmi takes 64k, a loss of 20k. So if I allocate 32 structures, I lose 640k. Is there any way of stopping malloc from rounding up the memory alloc to the nearest power of 2 when it takes the memory? I can't see anything in the faq about it. Does anyone know where this !@#$%! six wheeled robot came from?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |