This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: porting gcc
Mike Stump writes:
> On Tuesday, October 22, 2002, at 12:09 PM, 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?
>
> Sure. They aren't going to run gtk+ on it, promise, but I don't see
> any reason why:
>
> char c1, c2, c3;
>
> main() {
> c1 = c2 + c3;
> }
>
> can't work at least as well as the existing compilers for PIC.
Sure, but at some point you're going to spill and then you'll need some
reasonably efficient mechanism to index a stack frame.
I guess it depends on which PIC variant we're talking about -- it
looks as though the new PIC18CXXX will work quite well, but I wasn't
aware of that variant when I posted.
Andrew.