Page 1 of 1

I need to squeeze more room zx81 16k

Posted: Wed Apr 08, 2020 11:21 pm
by zx81ultra

I need more space, 1k will do fine, I think I have optimized my code to where it's possible (comparing against the generated assembly code), I don't know how to make more room.

My program is for the zx81 16k, I'm only using rand(), memcpy() and memset() calls, the rest is pure C.

Using: zcc +zx81 -create-app program.c

Any suggestions ?

Thank you !

Posted: Thu Apr 09, 2020 1:33 pm
by stefano
First of all, try -O3.

Then read this, sccz80 section:

Last resort, probably not working, surely not easy to deal with, add -subtype=fast