[comp.os.msdos.programmer] Desired: "limitless" heap manager reviews/recommendations

kerce@nu.cs.fsu.edu (Kingsley F. Kerce) (01/10/91)

Does anyone have opinion on a C heap manager that uses ex[pan/ten]ded
memory and/or fixed disk space?  I would hope that such a package
would be as easy to use as the malloc() family.  Additionally, it
would be nice if the manager worked with Turbo C 2.0.  Finally, if
it's free, that's perfect.

Thanks much,
--
Kingsley Kerce				kerce@nu.cs.fsu.edu
Dept of Computer Science B-173
FSU, Tallahassee, FL, 32306-4019
Work Phone: (904)644-8562

hleaves@ruby.vcu.edu (EAVES,HUGH) (01/11/91)

In article <KERCE.91Jan9164453@nu.cs.fsu.edu>, kerce@nu.cs.fsu.edu (Kingsley F. Kerce) writes...
>Does anyone have opinion on a C heap manager that uses ex[pan/ten]ded
>memory and/or fixed disk space?  I would hope that such a package
>would be as easy to use as the malloc() family.  Additionally, it
>would be nice if the manager worked with Turbo C 2.0.  Finally, if
>it's free, that's perfect.
> 
>Thanks much,
>--
>Kingsley Kerce				kerce@nu.cs.fsu.edu

It would be nice, but you're not going to find anything like that for a real
mode compiler. Real mode pointers are all 16 or 20 bits, which already limits
you to a maximum of 1 meg of memory. Even if you could use a larger pointer
size, there is no virtual memory management in real mode. I guess you could
rewrite your compiler to trap memory references to paged memory, and then, if
necessary, reload it from disk. If you're really running applications that need
a large amount of memory, you should consider switching to a protected mode
compiler.

Hugh



*******************************************************************************
** Hugh L. Eaves                      ** Internet: hleaves@ruby.vcu.edu      **
** Medical College of Virginia        ** Bitnet: hleaves@vcuruby             **
** Department of Human Genetics       ** Voice: (804) 371-8754               **
***************** All non-incendiary communication welcome! *******************

bright@nazgul.UUCP (Walter Bright) (01/15/91)

In article <KERCE.91Jan9164453@nu.cs.fsu.edu> kerce@nu.cs.fsu.edu (Kingsley F. Kerce) writes:
/Does anyone have opinion on a C heap manager that uses ex[pan/ten]ded
/memory and/or fixed disk space?  I would hope that such a package
/would be as easy to use as the malloc() family.  Additionally, it
/would be nice if the manager worked with Turbo C 2.0.  Finally, if
/it's free, that's perfect.

Zortech C/C++ implements a 'handle' pointer type that points into EMS
memory. It makes using EMS as easy as using malloc'd data. It comes
free with Zortech, unfortunately, Zortech isn't free! :-)