Re: Using FORTH as target machine?

Peter Knaggs <pjk@bcs.org.uk>
Tue, 28 Jul 2009 11:19:45 +0100

          From comp.compilers

Related articles
Using FORTH as target machine? mailings@jmksf.com (mailings@jmksf.com) (2009-07-22)
Re: Using FORTH as target machine? DrDiettrich1@aol.com (Hans-Peter Diettrich) (2009-07-25)
Re: Using FORTH as target machine? cr88192@hotmail.com (BGB / cr88192) (2009-07-25)
Re: Using FORTH as target machine? blog@rivadpm.com (alextangent) (2009-07-26)
Re: Using FORTH as target machine? blog@rivadpm.com (alextangent) (2009-07-26)
Re: Using FORTH as target machine? joevans@gmail.com (Jason Evans) (2009-07-27)
Re: Using FORTH as target machine? pjk@bcs.org.uk (Peter Knaggs) (2009-07-28)
Re: Using FORTH as target machine? akk@nospam.org (Andreas) (2009-07-28)
Re: Using FORTH as target machine? kym@svalbard.freeshell.org (russell kym horsell) (2009-07-29)
Re: Using FORTH as target machine? jacob@nospam.org (jacob navia) (2009-07-29)
| List of all articles for this month |
From: Peter Knaggs <pjk@bcs.org.uk>
Newsgroups: comp.compilers
Date: Tue, 28 Jul 2009 11:19:45 +0100
Organization: Compilers Central
References: 09-07-080
Keywords: forth
Posted-Date: 29 Jul 2009 08:38:37 EDT

mailings@jmksf.com wrote:
>
> While crawling the web, I was unable to find out a compiler that uses
> Forth as its target language. But in my opinion, compiling a
> higher-level language into Forth code is a great deal between using a
> standardized lower-level and widely spread programming language and its
> platform-independency. There are even CPUs which are capable of
> executing Forth.
>
> So, does anyone know about a compiler-project or similar software that
> uses Forth as its destination? And if not - would it be wrong to compile
> code into sequences of Forth definitions and words? Why?


Some years ago MPE did a C to Forth compiler as part of an EU funded
project. They did release it into the wild, and it can be downloaded from:


http://www.mpeforth.com/arena/c2forth110.zip


> Maybe I'm just looking too "foolish Forthy" into this topic. At least,
> it's a simple, stack-based virtual machine which is needed to execute a
> program in a particular (maybe self-defined) lower level language a
> compiler compiles to.


You should look for papers from Jaanus Pvial of the programming group at
the University of Tartu. He was using Forth as a common back end.
--
Peter Knaggs



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.