Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dealing with "Out of Memory" errors
Hi RandomiserUsr,

Up until now, I've been using something like this:

zxbc --org 26000 -t --strict --debug-memory --heap 6144 -B -a galacticon.bas

--though have tried varying the heap size from 4096 up to 8192 (at the highest level, I get out of memory almost immediately) and also the origin address.

With the above compile command, I get a code block of length 32,628, which I believe includes a 6k heap at the top of the block, so occupies memory 26,000 through to 58,628. I also have some UDGs that are loaded separately to 65,368.

I can't use the --debug-array option as it causes the compiler to crash (I use a pre-existing Python installation, so suspect something isn't quite as required).

The --mmap option looks potentially useful. At least I can see if the extent of the program is as expected.


Messages In This Thread
Dealing with "Out of Memory" errors - by georgeo - 03-08-2021, 01:09 PM
RE: Dealing with "Out of Memory" errors - by georgeo - 03-08-2021, 08:14 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)