From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9741 invoked by alias); 22 Oct 2002 19:22:40 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 9733 invoked from network); 22 Oct 2002 19:22:39 -0000 Received: from unknown (HELO Cantor.suse.de) (213.95.15.193) by sources.redhat.com with SMTP; 22 Oct 2002 19:22:39 -0000 Received: from Hermes.suse.de (Charybdis.suse.de [213.95.15.201]) by Cantor.suse.de (Postfix) with ESMTP id 414DB16FC7; Tue, 22 Oct 2002 21:22:38 +0200 (MEST) Date: Tue, 22 Oct 2002 15:16:00 -0000 From: Michael Matz To: Andrew Haley Cc: =?iso-8859-1?q?Gr=E9goire=20Dooms?= , Subject: Re: porting gcc In-Reply-To: <15797.41590.824194.255887@cuddles.cambridge.redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-10/txt/msg01373.txt.bz2 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.