The tools and libraries are much more varied and customizable in z88dk -- there is not just one compile command.
Always use the
nightly build. The project is very active so there are frequent updates. Install instructions are
here. If you download the windows or osx builds, they include zsdcc binaries; for linux you would have to compile zsdcc from source if you want to use sdcc.
There is a technical overview of how the new part of z88dk works
here. This is for an embedded target, that is a generic z80 machine, on which the spectrum target is built. Although compiling for the spectrum is a little bit different, the concepts discussed carry over.
The library and drivers are customizable on the compile line so to get the smallest possible binary depends on what you are trying to compile. If you have a test program you want to try, maybe share it here so I can suggest and explain a compile line for it.
This compile line:
[свернуть]