Hi! I'm having trouble getting sdcc to compile for the z80 on windows,
and I'd appreciate people's help.
I'm using Windows 2000 and Cygwin B20 (a relatively old version, but I
don't feel like downloading the new one over a 33.6k modem!).
I've downloaded and built sdcc 2.2.1, and am trying to compile a (very)
simple test program, test.c:
Compiling for the mcs51 works fine - typing 'sdcc test.c' generates a
However, 'sdcc -mz80 test.c' seems to fail at the link stage;
.asm,lst,lnk,o, and sys files are produced but rather than do any
linking the linker displays its 'help screen':
ASxxxx Linker V01.75
Distributed with SDK 3.0.0, built on Aug 5 2001 22:14:46
Compile options: SDK Target gbz80 INDEXLIB
-- [Commands] Non-interactive command line input
-c Command line input
-f file[LNK] File input
-p Prompt and echo of file[LNK] to stdout (default)
-n No echo of file[LNK] to stdout
Usage: [-Options] outfile file [file ...]
(and so on...)
I also tried running link-z80 from the prompt, but no matter what
options I gave it, it always displayed the same screen.
At this point I thought that perhaps my build was faulty, so I
downloaded the Borland 2.2.1 binaries, which I placed in a different
directory in my DOS (not Cygwin) path and tried running sdcc from the
windows command prompt.
Again, 'sdcc test.c' works fine. However, compiling for the z80 platform
fails with the following message:
D:\docs\speccy>sdcc -mz80 test.c
Cannot exec process : No such file or directory
Cannot exec assember: No such file or directory
I assume this is because the Borland binary release only contains the
mcs51 tools. Is this deliberate - I notice that the cygwin binary
release contains z80 versions? (which won't run on my system sinc they
are linked against a different cygwin1.dll - BTW, which version of
cygwin is supported with sdcc?)
Any ideas on how to resolve these problems? If you need more info,
PS: In case you're wondering, I want to use sdcc to develop software for
the Sinclair ZX Spectrum. For those unfamiliar with this rather
excellent machine, I suggest you look at http://www.worldofspectrum.org.