Gforth – A free, fast, featureful and portable implementation of Forth

smartmic1 pts0 comments

Gforth

Gforth

Manual

Words

Gforth

A free, fast, featureful and portable implementation of the Forth 2012 language.

\ a comment followed by the shortest quine<br>source type

\ another shorty, hello world looks like that<br>." hello world"

\ tell me, what else can we do? ask the system itself!<br>words \ this will yield all defined words

Download / Install

0.7.3 (Latest release)

Bleeding Edge snapshot

Build from Tarball<br>wget https://www.complang.tuwien.ac.at/forth/gforth/Snapshots/current/gforth.tar.xz<br>tar xvfJ gforth.tar.xz<br>cd gforth-*<br>./install-deps.sh<br>./configure<br>make<br>sudo make install

Git repository<br>git clone https://git.savannah.gnu.org/git/gforth/<br>cd gforth<br>./install-deps.sh<br>./autogen.sh<br>./configure<br>make<br>sudo make install

See INSTALL.md for further details

Debian >= Bullseye

If you don't have https transport for apt installed, do that first, since I'll redirect you to https in any case:<br>sudo apt install apt-transport-https

Make yourself root:<br>sudo -s

Obtain the key:<br>wget -O - https://net2o.de/bernd@net2o.de-yubikey.pgp.asc | \<br>gpg --dearmor -o /usr/share/keyrings/net2o-archive-keyring.gpg

Create a one-line file for the repo: Set version to either oldstable/stable/testing/unstable, whatever fits your Debian:<br>version=testing<br>cat >/etc/apt/sources.list.d/net2o.list

And then fetch the repository and install<br>apt update<br>apt install gforth-minos2

Leave root<br>exit

Docker<br>docker run -it --rm forthy42/gforth<br>or<br>podman run -it --rm forthy42/gforth

Supported systems

Gforth runs under GNU, BSD, and similar systems, MS Windows and MacOS X<br>and should not be hard to port to other systems supported by GCC.<br>Version 0.7.9_20160714 has been tested successfully on the following platforms:

GNU/Linux

amd64

arm64

armel

armhf

i386

mips

mipsel

powerpc

Android/Linux

Gforth on Android

amd64

arm64

arm

i386

mips

Gforth EC(embedded)

r8c

4stack

misc

8086

Windows

amd64

i386

MacOS

amd64

i386

Related links

Free Software Directory

Forth Standard<br>Read about the Language and find communities

the Forth Net<br>Forth package repository

Contact

gforth@gnu.org<br>Mailing List

comp.lang.forth<br>Ancient, yet highly active news group.

Authors

Anton Ertl Project initiator, C based primitives, locals, gray, manual, Release manager, GNU maintainer

Bernd Paysan Project leader, kernel, cross compiler, non-Unix ports based on GCC, Release manager, GNU maintainer

Gerald Wodni SWIG module for C libraries

David Kühling Emacs integration

Jens Wilke Embedded Control versions (non-gcc), decompiler, cross compiler refinement

Neal Crook manual, glossary entries

gforth install forth https make sudo

Related Articles