Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Maximal size for a compiled program
#2
(11-09-2019, 04:27 PM)Week of the agents Wrote: Hi, I am developing game with ZX Basic for a Spectrum 48k and when total size of compiled code approach up to 35-36K shit happens. Program can hang on or some pixels on screen are highlighted or INKEY stops to working.
Is there some limit?

I load code at address 24576 (24K) so I thought I have 40K room for free.
Theoretically it should work ok. If you don't use strings or do little usage of them, try reducing the heap (4k by default) compiling with the flag:
--heap-size=1024 for example (1k for heap). I recommend not to reduce heap size below 512.

Try please, and tell me.
Rolleyes
Reply


Messages In This Thread
RE: Maximal size for a compiled program - by boriel - 11-10-2019, 05:49 PM
RE: Maximal size for a compiled program - by LCD - 11-11-2019, 12:36 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)