This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]