| delorie.com/archives/browse.cgi | search |
| Xref: | news2.mv.net comp.os.msdos.djgpp:7350 |
| From: | malcolm AT manawatu DOT gen DOT nz (Malcolm Taylor) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Better malloc for use with PMODE. |
| Date: | Thu, 15 Aug 1996 21:33:31 GMT |
| Organization: | Grafik Software |
| Lines: | 12 |
| Message-ID: | <4v0986$oec@news.manawatu.gen.nz> |
| Reply-To: | malcolm AT manawatu DOT gen DOT nz |
| NNTP-Posting-Host: | malcolm.manawatu.gen.nz |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Hi all, I am wondering if anyone has a better malloc routine that would suit use with PMODE. The libc.a malloc is atrocious in this environment. For example most of my tables are a nice power of two long, so the libc malloc allocates exactly twice as much memory as is needed (eg a 512K table uses 1M of space). This means that I run out of memory very fast. I have had to resort to direct sbrk allocations, and the housekeeping associated with these. Thanks Malcolm
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |