From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10397 invoked by alias); 24 Mar 2003 16:01:48 -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 10388 invoked from network); 24 Mar 2003 16:01:48 -0000 Received: from unknown (HELO ltgp.iram.es) (150.214.224.138) by sources.redhat.com with SMTP; 24 Mar 2003 16:01:48 -0000 Received: from ltgp.iram.es (localhost [127.0.0.1]) by ltgp.iram.es (8.12.8/8.12.8/Debian-2) with ESMTP id h2OG0ZL9007153; Mon, 24 Mar 2003 17:00:35 +0100 Received: (from paubert@localhost) by ltgp.iram.es (8.12.8/8.12.8/Debian-2) id h2OG0Yrv007152; Mon, 24 Mar 2003 17:00:34 +0100 From: Gabriel Paubert Date: Mon, 24 Mar 2003 16:33:00 -0000 To: Petr Danecek Cc: gcc@gcc.gnu.org Subject: Re: gcc for any microcontroller? Message-ID: <20030324160034.GA7080@iram.es> References: <1048519780.29852.106.camel@petr.ucl.cas.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1048519780.29852.106.camel@petr.ucl.cas.cz> User-Agent: Mutt/1.3.28i X-SW-Source: 2003-03/txt/msg01461.txt.bz2 On Mon, Mar 24, 2003 at 04:29:41PM +0100, Petr Danecek wrote: > thank you for your answer, Toshi. > if i understand it correctly, HC08 would be difficult to port, though > not impossible. now, is it worth of it? maybe there is a more suitable c > compiler somewhere. i doubt that writing cc from scratch is a good > choice...? > petr There is a Debian packages called sdcc (small device C compiler) and a companion simulator package (sdcc-ucsim): "SDCC is a C compiler for the Intel MCS51 family, AVR and Z80 microcontrollers. The package includes the compiler, assemblers and linkers, and a core library." If it can generate (probably awful) code for the 8051, it must be fairly easy to target almost any architecture, however strange it is. Disclaimer, I've never used it, I just discovered it a few days ago when looking for something completely unrelated. But having written a few thousand lines of 8051 assembly, I've not yet figured how a compiler can target such a baroque processor. Gabriel.