231b3679@fergvax.unl.edu (CS 231 section 2) (01/29/91)
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. --mike gleason
peirce@outpost.UUCP (Michael Peirce) (01/29/91)
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