Article View: comp.sys.ibm.pc
Article #42044Re: Need help with Turbo C "farmalloc"
From: Robert Seals
Date: Fri, 09 Feb 1990 16:39
Date: Fri, 09 Feb 1990 16:39
16 lines
1002 bytes
1002 bytes
In article <25d2b215@ralf>, Ralf.Brown@B.GP.CS.CMU.EDU writes: > Here is some code which I use for small permanent allocations, which virtually > eliminates memory management overhead (16-32 bytes overhead for 8192 bytes of > allocation, assuming 16-byte or smaller allocations). You may want to use > farmalloc() instead of malloc() to allocate the blocks which get parceled > out. [ code deleted ] Ralf's code is probably terrific, but remember to #include <alloc.h> or you'll probably have problems in the larger memory models. rob
Technical Details
Message-ID:
<2521@leah.Albany.Edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!zaphod.mps.ohio-state.edu!rpi!leah!rds95References:
<25d2b215@ralf>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!zaphod.mps.ohio-state.edu!rpi!leah!rds95 From: rds95@leah.Albany.Edu (Robert Seals) Newsgroups: comp.sys.ibm.pc Subject: Re: Need help with Turbo C "farmalloc" Summary: don't forget alloc.h Message-ID: <2521@leah.Albany.Edu> Date: 9 Feb 90 16:39:50 GMT References: <25d2b215@ralf> Organization: The University at Albany, Computer Services Center Lines: 16