Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!claris!outpost.UUCP!peirce From: peirce@outpost.UUCP (Michael Peirce) Newsgroups: comp.sys.mac.programmer Subject: Re: How much RAM? Message-ID: <0B010004.9roql1@outpost.UUCP> Date: 29 Jan 91 05:17:06 GMT Reply-To: peirce@outpost.UUCP Organization: Peirce Software Lines: 19 X-Mailer: uAccess - Mac Release: 1.0.3 In article <231b3679.665112405@fergvax>, 231b3679@fergvax.unl.edu (CS 231 section 2) writes: > > Can someone tell me of a way to find out how much RAM the machine has? I've > perused the UMPG, the Memory Mangler, the list of globals, and SysEnvirons(), > but I can't see a way to do it. I'd also like to do it without using Gestalt(), > for (1) I don't have any documentation at all on it, and (2), the routine needs > to work on Systems older than 6.0.4. There is a routine called MFTopMem that returns a pointer to the top of memory. It's found in either Memory.p or Memory.h. I'm not sure which system this first showed up in though. -- michael -- Michael Peirce -- outpost!peirce@claris.com -- Peirce Software -- Suite 301, 719 Hibiscus Place -- Macintosh Programming -- San Jose, California 95117 -- & Consulting -- (408) 244-6554, AppleLink: PEIRCE