howerj / forth2c

Forth 2 C compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

forth2c compiler and runtime

From http://yosefk.com/blog/c-as-an-intermediate-language.html, with modifications. This implements a C runtime for the Forth compiled to C and a Forth to C compiler.

Also of note:

  • The license for this set of programs is unknown. Contact the author (and not me) if you want to use this for anything serious.
  • The script forth2c and this system could be used as a template for porting a Forth implementation to a new CPU, such as my bit-serial CPU project. Using a small python script is much simpler than making a cross compiler or an assembler in C.

About

Forth 2 C compiler


Languages

Language:Python 41.9%Language:C 22.5%Language:C++ 21.4%Language:Forth 9.8%Language:Makefile 4.4%