This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc for any microcontroller?
- From: <tm_gccmail at mail dot kloo dot net>
- To: Stephane Carrez <stcarrez at nerim dot fr>
- Cc: Petr Danecek <danecek at ucl dot cas dot cz>, gcc at gcc dot gnu dot org
- Date: Mon, 24 Mar 2003 13:59:49 -0800 (PST)
- Subject: Re: gcc for any microcontroller?
On Mon, 24 Mar 2003, Stephane Carrez wrote:
> Hi!
>
> Petr Danecek wrote:
> > thank you for your answer, Toshi.
> > if i understand it correctly, HC08 would be difficult to port, though
> > not impossible. now, is it worth of it? maybe there is a more suitable c
> > compiler somewhere. i doubt that writing cc from scratch is a good
> > choice...?
> > petr
> >
>
> Gcc already supports HC11 and HC12. The generated code is better than
> commercial compilers (like Cosmic). The few registers (3) that HC11/HC12
> have made my life difficult in making gcc generate good output. But it is
> do-able (so I disagree with Toshi as far as HC11/HC12 are concerned).
You're lucky on the HC11. It at least has 16-bit index registers. Many of
the other processors from that era have index registers with fewer bits
than their addressing (6502, 65816, 8086, etc).
Toshi