I need to squeeze more room zx81 16k

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

I need to squeeze more room zx81 16k

Post by zx81ultra »

Hello,

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

Post by stefano »

First of all, try -O3.

Then read this, sccz80 section:
https://github.com/z88dk/z88dk/wiki/WritingOptimalCode

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