All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jody Bruchon <jody@jodybruchon.com>
To: "ELKS (linux-8086)" <linux-8086@vger.kernel.org>
Subject: Re: SDCC porting feasibility study, part 1: the assembler
Date: Mon, 27 Feb 2012 10:46:17 -0500	[thread overview]
Message-ID: <4F4BA549.10506@jodybruchon.com> (raw)
In-Reply-To: <20120227100515.GE27951@vega.lgb.hu>

On 02/27/12 05:05, Gábor Lénárt wrote:
> Re,
>
> On Sun, Feb 26, 2012 at 06:18:55PM -0600, Brad Normand wrote:
>> I've started looking at SDCC to try and get an idea how easy it is to
>> port this to target 8086.
>
> Maybe a bit off-topic, but:
>
> Hmm, I had a bad experience with SDCC with Z80 as target. Maybe I was
> not so smart, but I couldn't make it emit RODATA like stuff, it just generated
> Z80 code (!) to store data, instead of just the data.

I am contemplating writing a new toolchain from the ground up at this 
point. I'm rapidly learning that open source C toolchains are in short 
supply, and the ones that exist either (A) don't target 8086 at all, (B) 
are not documented well enough (or clearly enough) for a newcomer to add 
support, (C) output things in ways that are undesired, or (D) are so 
complex that all ye who enter there abandon all hope, specifically 
thinking of gcc. Particularly with smaller CPUs than 8086, it seems C 
compilers are ill-suited. I am thinking of the 6502, of which many 
systems exist with massive (for a 64K address space) amounts of 
bank-switched RAM; its minimal amount of 8-bit registers and interesting 
addressing modes make it hard to compile good code for from a language 
like C. The 65816 being the 16-bit variant makes it highly desirable to 
port ELKS to (wouldn't it be nice to have ELKS working on the Apple IIgs?)

Maybe what we need to be doing is making a list of the features that we 
need a compiler to support, rather than taking each one in turn and 
trying to jam the pegs in the holes?

Jody Bruchon
--
To unsubscribe from this list: send the line "unsubscribe linux-8086" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2012-02-27 15:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-27  0:18 SDCC porting feasibility study, part 1: the assembler Brad Normand
2012-02-27 10:05 ` Gábor Lénárt
2012-02-27 15:43   ` Brad Normand
2012-02-27 15:46   ` Jody Bruchon [this message]
2012-02-27 17:53     ` Brad Normand
2012-02-27 18:52       ` David Given
2012-02-27 19:04         ` Chad
2012-02-27 19:33         ` Brad Normand
2012-02-27 19:37         ` Harley Laue
2012-02-27 20:42           ` Brad Normand
2012-02-27 21:34             ` Jody Bruchon
2012-02-27 22:26           ` David Given

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=4F4BA549.10506@jodybruchon.com \
    --to=jody@jodybruchon.com \
    --cc=linux-8086@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.