public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Haley <aph@redhat.com>
To: Ganesh <ganesh@acmet.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Porting GCC to 8051 Microcontroller
Date: Fri, 09 May 2008 10:35:00 -0000	[thread overview]
Message-ID: <48241B9A.4030705@redhat.com> (raw)
In-Reply-To: <48217EC9.1080307@redhat.com>

Andrew Haley wrote:
> Ganesh wrote:
>> I haven't said that I don't understand the steps involved. I have just
>> now started to work on it. I want to check whether if anyone have ever
>> tried this port and successfully completed it.
> 
> It's very unlikely.  It's not completely impossible to do it, but
> code quality would probably be poor.
> 
> See http://gcc.gnu.org/ml/gcc/2003-07/msg00890.html
> http://gcc.gnu.org/ml/gcc/2003-07/msg01167.html

I've been thinking about this some more.  I suspect you could get good
results by generating not 8051 assembly language, which would be gross,
but a simple bytecode engine.  It wouldn't be at all fast, but it would
be possible to generate some native code sequences and intermix them
with the bytecode.  This would be a reasonable compromise between speed
and code density.

Andrew.

  reply	other threads:[~2008-05-09  9:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-07  7:50 Ganesh
2008-05-07  7:57 ` Fabian Cenedese
2008-05-07 11:48   ` Ganesh
2008-05-07  9:55 ` Andrew Haley
2008-05-07 10:03   ` Ganesh
2008-05-07 10:15     ` Andrew Haley
2008-05-09 10:35       ` Andrew Haley [this message]
2008-05-09 15:28 Duane Ellis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48241B9A.4030705@redhat.com \
    --to=aph@redhat.com \
    --cc=ganesh@acmet.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).