I need to squeeze more room zx81 16k

ZX80, ZX 81, ZX Spectrum, TS2068 and other clones
Post Reply
Posts: 36
Joined: Thu Feb 13, 2020 1:56 am

I need to squeeze more room zx81 16k

Post 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 !
Well known member
Posts: 1534
Joined: Mon Jul 16, 2007 7:39 pm

Post 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
Post Reply