This is the mail archive of the
mailing list for the GCC project.
Re: Is anyone working on a Z80 port?
- From: DJ Delorie <dj at redhat dot com>
- To: Jeff Law <law at redhat dot com>
- Cc: laguest at archeia dot com, gcc at gcc dot gnu dot org
- Date: Wed, 14 Oct 2015 14:15:07 -0400
- Subject: Re: Is anyone working on a Z80 port?
- Authentication-results: sourceware.org; auth=none
- References: <561E6EEE dot 7000200 at archeia dot com> <561E71C9 dot 8060204 at archeia dot com> <561E754B dot 2090609 at redhat dot com>
> I spec'd one out a long time ago for Cygnus/Red Hat, but we never
> pursued the port. The register model on the z80 will be problematical,
> though some of the lessons from the rl78 port would probably be useful.
The RL78 is very much a modern decendent of the Z80 architecture so might
serve as a good starting point.
But yeah, it's a messy port because gcc doesn't like the weird
addressing model. I ended up using a virtual ISA that gcc could deal
with, then converted that to real instructions after reload.