#include "head.html" µEforth for Linux

µEforth for Linux

#include "menu.html"

Building

Linux builds of µEforth are no longer published as this isn't really ideal for Linux anyway.

Instead build as follows:

sudo apt install ninja-build
git clone https://github.com/flagxor/ueforth
cd ueforth
./configure.py
ninja

http://github.com/flagxor/ueforth - Complete Unprocessed Source Code

µEforth

µEforth Words

#include "common.html" #include "files_common.html" #include "posix_common.html"

Linux

Linux Opcodes

Linux libraries and the operating system can be accessed via the use of the DLSYM word. Functions can be requested by name from particular modules. As the dynamic linking module is already loaded initially, a 0 for the module allows the library loading function (dlopen) to be loaded from Forth.

DLSYM ( module name-z -- fn )

See posix_main.c.

Native functions all called with CALL(n) (see Windows & Linux Calling below).

Linux Imports

Various Linux calls including Xlib are imported in posix.fs and xlib.fs. In addition, TYPE and KEY are connected to stdin and stdout.

#include "desktop_common.html"