Path: 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 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 or you'll probably have problems in the larger memory models. rob