Linux-Hams archive - June 1997: RE:Z80 C cross-compiler, assembler, linker for X1J4

RE:Z80 C cross-compiler, assembler, linker for X1J4

Alan Crosswell (fvsongd@canvas.ne.jp)
Sat, 7 Jun 97 11:41:05 EDT


>
> >Anybody know of an available C compiler and friends for the Z80 that I
> >could run under Linux, or DOSEMU or (gasp) even actual DOS. I am toying
> >around with doing some APRS stuff and need to make a few small changes to
> >the X1J4 code. I wasn't able to tell from the source code which particular
> >cross-compiler Dave, G8KBB, had used. Looks like GCC doesn't have any
> >support for 8-bit architecture machines....
>
> Have a search for something called ZCC, if you get stuck I can probably
> find a URL from my daytime Netscape.
>
> 73 G7PIT
>
>
> --
> Dave J Brown operating from a secret location.
>

Hello Dave and the others. Thanks all for your comments. Here's what
I've collected so far:

John Coppens <gasny@gwynedd.gov.uk> sent me the original compiler used
by NORD><LINK for TheNet. It is from Quality Software (I think that's the
name) and was explicitly made freely available by them for Amateur use
only. The current X1J4 release was done with a different compiler package
however so there will be some minor tweaking involved having to do with
CPP, etc.

I've also been referred to the High Tech compiler, which they've made their
CP/M version available for free. I've obtained that as well.

I also picked up zcc, but it's assembler syntax is very different from
the current source code and the C compiler does not support the
#asm directive which is used throughout. It would be a lot of work to
make this compiler and assembler do the job.

I obtained the cpm-0.2 package and have successfully compiled and executed
a hello, world program. I had to hack the symbol names a little (leading
underscore vs. lack thereof in .s vs .c).

I used dosemu and have partially compiled a sample file from x1j4 just
to see if it works using QC. So far so good. So far I have not had
to reboot into DOS:-)

John tells me of a better cp/m emulator that runs under DOS. Maybe I'll
try it under dosemu if I succeed in actually building an image!

Thanks again and please correct any misconceptions you see above. I'd
still like to know which actual compiler was used for X1J4 as opposed
to the original TheNet. The makefile references c80, as80, etc.

73 de Alan N2YGK