Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Memory used ?
#4
You can try to get the memory used within the heap (which is the area for dynamic memory) with the library <alloc.bas>
Code:
#include <alloc.bas>

PRINT memavail()  ' Total HEAP free memory (might be fragmented in 2 or more blocks...)
PRINT maxavail()  ' Size of the largest free contiguous single memory block

On the other hand, if you want to see how memory is organized within a ZX Basic compiled program, use --mmap as @georgeo suggested. :-)
Reply


Messages In This Thread
Memory used ? - by RandomiserUsr - 03-13-2021, 02:10 PM
RE: Memory used ? - by georgeo - 03-13-2021, 03:02 PM
RE: Memory used ? - by RandomiserUsr - 03-13-2021, 03:16 PM
RE: Memory used ? - by boriel - 03-14-2021, 11:37 AM
RE: Memory used ? - by boriel - 03-14-2021, 11:39 AM
RE: Memory used ? - by georgeo - 03-14-2021, 12:53 PM
RE: Memory used ? - by boriel - 03-14-2021, 04:53 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)