z88dk forums

z80 Development Kit

You are not logged in.

#1 2020-04-09 00:21:53

zx81ultra
Member
Registered: 2020-02-13
Posts: 33

I need to squeeze more room zx81 16k

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 !

Offline

 

#2 2020-04-09 14:33:07

stefano
Administrator
Registered: 2007-07-16
Posts: 1579

Re: I need to squeeze more room zx81 16k

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

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson