Path: utzoo!attcan!uunet!tank!oddjob!uwvax!rutgers!apple!voder!pyramid!ctnews!starfish!cdold From: cdold@starfish.Convergent.COM (Clarence Dold) Newsgroups: comp.lang.c Subject: Re: memory allocation Message-ID: <708@starfish.Convergent.COM> Date: 9 Sep 88 17:49:40 GMT References: <5702@utah-cs.UUCP> Distribution: comp.lang.c,comp.os.misc Organization: Convergent Technologies, San Jose, CA Lines: 15 From article <5702@utah-cs.UUCP>, by u-dmfloy%sunset.utah.edu@utah-cs.UUCP (Daniel M Floyd): > > You might try an allocation scheme similar to a DOS (i.e. MS/PS) > disk space allocation. > > Divide your memory into convinient chunks. Then refer to those > chunks in some sort of look up table. Keep a pointer to the first > used block and the last. Always allocate at the end. The table will If you are using a Unisys or Convergent system, look at malloc(3x) rather than malloc(3c). It implements a 'convenient chunk' scheme, incredibly faster, especially if you are paging to swap space. -- Clarence A Dold - cdold@starfish.Convergent.COM (408) 435-5274 ...pyramid!ctnews!mitisft!professo!dold P.O.Box 6685, San Jose, CA 95150-6685