Hi. This is about the unofficial eForth distribution package eforthl.zip in my FTP directory.
The supplied code can only be used together with Linux on 386/486/Pentium ... machines.
Tested for Linux vsn 2.0.0 and FreeBSD 2.0.5.
Please note that this eForth is not in line with the original author's (Bill Muench) philosophy:
See NEW.TXT for additions ( DOES> DO LOOP etc.)
Most of the kernel was in high-level Forth. It is rewritten in CODE here.
Hooks have been added to allow Wil Baden's PinHole Optimizer (See OPT.E4)
Hooks have been added to call C-libraries, see the jump table in eforth.c. The idea is that only eforth.c needs to be recompiled to let the existing Forth image use new C-procedures. So there is no need for a Forth guru iff eforth.img works on your system.
Some terminal commands (CLS EOL etc.) have been added to the kernel.
To (re)build eForth.img
You need TASM (Borland) and a Forth that can run relocate.frt for you. The batch file makeel.bat assumes you have iForth installed and callable under the name MITH.
You must relocate the image if the load address the server program (eforth.c) uses does not work with either of the two already supplied *.img files.
- Run makeel.bat under MS-DOS.
Normally there is no need to regenerate eforth.img.
Copy the following files to a Linux / FreeBSD directory of your choice:
eforth.img ; binary code of eForth
eforth ; executable
tty.c tty.h ttytest.c eforth.c ; terminal code and "C" loader
ef.txt ; example
fib.e4 matrix-m.e4 siev.e4 ; benchmarks
opt.e4 ; high level optimizer
It is highly unlikely that the supplied eforth binary will run on your system, so don't try. Instead, simply recompile eforth.c for your system:
gcc eforth.c; mv a.out eforth
Type "eforth" (no quotes). eForth will greet you (if the right *.img is used. If not, go to "rebuild" above). You must type in all CAPS for it to understand you. Enter BYE to return to Linux (after playing around a bit).
There are no file words in eForth, so use the following trick to compile and execute a benchmark program:
cat opt.e4 fib.e4 | eforth | less
Use the following sequence to include a file before using the keyboard interactively:
cat opt.e4 - | eforth
eForth will run ok in an X-window.
That's all. Have fun. eForth is not supported by me, but I will answer questions on code I added.
If enough people ask for it I will port the code to Windows NT.