This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: porting gcc
- From: Michael Matz <matz at suse dot de>
- To: Andrew Haley <aph at redhat dot com>
- Cc: Grégoire Dooms <dooms at student dot info dot ucl dot ac dot be>,<gcc at gcc dot gnu dot org>
- Date: Tue, 22 Oct 2002 21:22:37 +0200 (CEST)
- Subject: Re: porting gcc
On Tue, 22 Oct 2002, Andrew Haley wrote:
> =?iso-8859-1?Q?Gr=E9goire=5FDooms?= writes:
> > I'd like to port gcc to the Microchip PIC 8 bit microcontroller familly.
>
> Ouch. Are you really sure that you want to do this? Gcc requires
> reasonably efficient addressing of stack frames in order to spill and
> fill when there are insufficient physical registers. This might be
> hard to do on the PIC. gcc has been [orted to some 16-bitters, but a
> microcontroller is a stretch.
The AVR _is_ a 8 bit microcontroller, and is supported by gcc (it also
supports it with 16bit integers). Sure, it has around 30 free registers.
And yes, the stack pointer (like all its 16 bit pointers) actually are two
registers.
Ciao,
Michael.