From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15263 invoked by alias); 22 Oct 2002 19:32:43 -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 15256 invoked from network); 22 Oct 2002 19:32:42 -0000 Received: from unknown (HELO stardust.solidas.com) (217.13.28.68) by sources.redhat.com with SMTP; 22 Oct 2002 19:32:42 -0000 Received: from solidas.com (217-13-28-77.dd.nextgentel.com [217.13.28.77]) (authenticated) by stardust.solidas.com (8.11.6/8.11.6) with ESMTP id g9MJWXs05392; Tue, 22 Oct 2002 21:32:33 +0200 Message-ID: <3DB5A7D1.5060808@solidas.com> Date: Tue, 22 Oct 2002 15:27:00 -0000 From: "Svein E. Seldal" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020721 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Haley CC: =?ISO-8859-1?Q?Gr=E9goire_Dooms?= , gcc@gcc.gnu.org Subject: Re: porting gcc References: <20021022125558.BF06A22213B@yhwh> <15797.41590.824194.255887@cuddles.cambridge.redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-10/txt/msg01375.txt.bz2 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. Well yes, but remember that gcc has been ported to run on AVR (and quite successfully IMHO). AVR is the "sibling"-product for PIC's. It is a 8-bit microcontroller, with some limited 16-bit extensions. I do not know anything about PIC's, but I think the target should be able to handle gcc code. I must remember anyone of the mission statement that states that gcc wants more new targets :) We mustn't discurage newcomers... ;) I have experienced that several of these small gcc targets (like AVR's) produces better quality code than its commercial tools. We should encourage development of gcc for small microcontrollers as well as the big mainframe targets. gcc is a great product! I have been thinking about porting 8051 to gcc, but I wont do so until I need it in a project (if I need it at all). Porting gcc to new targets is a fairly extensive job. Svein