[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
memory checking functions
- To: info-mcl@cambridge.apple.com
- Subject: memory checking functions
- From: lau@darpa.mil
- Date: Mon, 23 Nov 92 14:04:00 EST
- Cc: lau@darpa.mil
> Are there functions out there that return the amount of memory available
> so that functions can warn the user when it gets low? Something akin to
> (room) that returns values rather than printing to *standard-output*?
> Thanks
> --Dave
> David S. Bright bright@enh.nist.gov
> Microanalysis Research Group
> National Institute of Standards & Technology (NBS)
> Gaithersburg, MD 20899
> USA
> 301-975-3911
Dave,
I use the function (%freebytes) which returns an integer.
It's been very useful for allocating space for large arrays, etc.
To be accurate, I usually force a (gc) just before calling it.
Otherwise the integer it returns depends on the current freebytes
available.
Lawrence Au