Gforth Manual

Table of Contents

Next: , Previous: (dir), Up: (dir)


Gforth

This manual is for Gforth (version 0.7.9_20230126, January 26, 2023), a fast and portable implementation of the Standard Forth language. It serves as reference manual, but it also contains an introduction to Forth and a Forth tutorial.

Authors: Bernd Paysan, Anton Ertl, Gerald Wodni Copyright © 1995, 1996, 1997, 1998, 2000, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014,2015,2016,2017,2018,2019,2020,2021,2022 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with the Front-Cover texts being “A GNU Manual,” and with the Back-Cover Texts as in (a) below. A copy of the license is included in the section entitled “GNU Free Documentation License.”

(a) The FSF's Back-Cover Text is: “You have freedom to copy and modify this GNU Manual, like GNU software. Copies published by the Free Software Foundation raise funds for GNU development.”

--- The Detailed Node Listing ---

Goals of Gforth

Gforth Environment

Forth Tutorial

An Introduction to Standard Forth

Forth Words

Arithmetic

Stack Manipulation

Memory

Strings and Characters

Control Structures

Defining Words

User-defined Defining Words

Creating from a prototype

Interpretation and Compilation Semantics

Tokens for Words

Compiling words

The Text Interpreter

Word Lists

Files

Search Paths

Other I/O

Locals

Gforth locals

Structures

Object-oriented Forth

The objects.fs model

The oof.fs model

The mini-oof.fs model

Programming Tools

Multitasker

C Interface

Assembler and Code Words

Carnal words

Tools

Standard conformance

The Core Words

The optional Block word set

The optional Double Number word set

The optional Exception word set

The optional Facility word set

The optional File-Access word set

The optional Floating-Point word set

The optional Locals word set

The optional Memory-Allocation word set

The optional Programming-Tools word set

The optional Search-Order word set

Emacs and Gforth

Image Files

Fully Relocatable Image Files

Engine

Threading

Primitives

Cross Compiler

MINOS2, a GUI library

MINOS2 object framework

Licenses