Quote:
Originally Posted by roondar
I'm not sure whether you just want to know how much memory is free on the machine, or how much memory your program is using.
|
I want to find out how much memory my program is using, basically.
It currently runs on a stock 512k machine and I want to know how much RAM is left for sound effects, etc. Knowing how much is free before and during is ok as I can do the maths with that.
Quote:
So, assuming you want to know how much free memory is available:
There are indeed Aminet utilities, some with source, that can tell you how much free memory there is. You could also get the pointer to the Exec memory list and traverse it yourself, though that might involve some pointer arithmetic to work. As a last resort, you could also just execute the avail command and parse it's output.
But these are only really needed if you're using Kickstart 1.3. If your game is running Kickstart 2.0+, the easiest way by far it to just use the Exec AvailMem() function.
See: http://amigadev.elowar.com/read/ADCD.../node01EE.html
|
Thanks! I'll check that out. It's only needed during development, so KS2.0+ is fine.