From: 42Bastian Schick on
On Mon, 11 Jan 2010 15:21:02 +0100, Philipp Klaus Krause <pkk(a)spth.de>
wrote:

>I asked this question here about one and a half years ago. I'm posting
>again since I'm curious about the current situation.
>
>I want to look at alternatives to C for Z80 programming using languages
>that compile to C. There are the following requirements:
>
>- Compiles to C
>- Free compiler
>- Low memory usage (I have only 1KB of RAM, 32KB of ROM)
>
>Has anyone come across such a language?
>
>The last requirement seems to be a rather hard one. Many languages that
>compile to C include relatively large overhead or do dynamic allocation
>of memory, etc. So far bitc (http://bitc-lang.org/) seems to be the
>closest match, but it's abandoned.

Check out m2c (Modula-2 to C)
--
42Bastian
Do not email to bastian42(a)yahoo.com, it's a spam-only account :-)
Use <same-name>@monlynx.de instead !
From: Chris Burrows on
"Philipp Klaus Krause" <pkk(a)spth.de> wrote in message
news:4b4b33cf$0$9752$6e1ede2f(a)read.cnntp.org...
>
> I want to look at alternatives to C for Z80 programming using languages
> that compile to C. There are the following requirements:
>
> - Compiles to C
> - Free compiler
> - Low memory usage (I have only 1KB of RAM, 32KB of ROM)
>
> Has anyone come across such a language?

<quote>
XDS-C is a Modula-2/Oberon-2 "via C" compiler: its output is ANSI C, K&R C,
or C++ source code, which is subject to further compilation by a third party
C/C++ compiler.
</quote>

http://www.excelsior-usa.com/xdsc.html

>
> The last requirement seems to be a rather hard one.

Yes - this may well be a stumbling block.

--
Chris Burrows
CFB Software
http://www.cfbsoftware.com/modula2




From: bigbrownbeastie on
Use visualstate or similar statemachine drawing tool that produces c
or c++, fits on a Z80 no problem job done.

From: Marco on
On Jan 11, 7:21 am, Philipp Klaus Krause <p...(a)spth.de> wrote:

> I want to look at alternatives to C for Z80 programming using languages
> that compile to C. There are the following requirements:
>
> - Compiles to C
> - Free compiler
> - Low memory usage (I have only 1KB of RAM, 32KB of ROM)
>
> Has anyone come across such a language?

Virgil
http://compilers.cs.ucla.edu/virgil/

it also "abandoned" but of interest for experimentation purposes
I have been too busy myself to try it out myself but it did look
interesting

as long as you have the source code then it is not truly abandoned
like the bad old days when the vendor went belly up you were out of
luck

By the way targeting C these days is quite common but usually is for
larger 32 bit general purpose platforms.



From: 42Bastian Schick on
On Sat, 16 Jan 2010 05:33:08 -0800 (PST), Marco
<prenom_nomus(a)yahoo.com> wrote:

>By the way targeting C these days is quite common but usually is for
>larger 32 bit general purpose platforms.

But w/o reason. AFAIK the first machine running C was a 16bit CPU.

--
42Bastian
Do not email to bastian42(a)yahoo.com, it's a spam-only account :-)
Use <same-name>@monlynx.de instead !
First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10
Prev: USB drives, caching and sync
Next: Which CPU to choose?