Path: utzoo!mnetor!uunet!husc6!bloom-beacon!mit-eddie!rutgers!mtunx!whuts!homxb!antique!cjp From: cjp@antique.UUCP (Charles Poirier) Newsgroups: comp.sys.amiga.tech Subject: Re: Memory Types??? Message-ID: <2187@antique.UUCP> Date: 19 Apr 88 23:10:52 GMT References: <8804182055.AA15423@cory.Berkeley.EDU> Reply-To: cjp@vax135.UUCP (Charles Poirier) Organization: AT&T Bell Labs, Holmdel, NJ Lines: 33 Summary: Sort of In article <8804182055.AA15423@cory.Berkeley.EDU> dillon@CORY.BERKELEY.EDU.UUCP writes: |: Can someone please tell me the proper memory nomenclature? What I want to |:define are three different catagories of memory request: |: |: CHIP : must be chip memory. | | ptr = AllocMem(bytes, MEMF_PUBLIC|MEMF_CHIP); |: |: FAST : must be fast memory. |: | ptr = AllocMem(bytes, MEMF_PUBLIC|MEMF_FAST); Huh? What I understood was that this construct gives the same result as the request below without MEMF_FAST, giving CHIP when insufficient FAST is available. One solution (suboptimal, but hey) would be to request MEMF_FAST, then check the returned pointer with TypeOfMem() (sp? was just recently the subject of a posting), and if it's CHIP, FreeMem it and fail. You'd want to think carefully about using this, as many Amigas have only CHIP memory. By the way, did Matt really mean to imply that *every* AllocMem should ask for MEMF_PUBLIC? |: FSCH : fast if possible, if not the chip if possible. | | ptr = AllocMem(bytes, MEMF_PUBLIC); | | I.E. EXEC searches for space in fast memory before chip memory. -- Charles Poirier (decvax,ihnp4,attmail)!vax135!cjp "Docking complete... Docking complete... Docking complete..."