Tech News
← Back to articles

planckforth: Bootstrapping a Forth interpreter from hand-written tiny ELF binary

read original related products more articles

PlanckForth: Bootstrapping an Interpreter from Handwritten 1KB Binary

This project aims to bootstrap a Forth interpreter from hand-written tiny (1KB) ELF binary. This is just for fun. No practical use.

How to build

Only xxd is needed to build PlanckForth.

$ git clone https://github.com/nineties/planckforth.git $ cd planckforth $ make xxd -r -c 8 planck.xxd > planck chmod +x planck

Implementations in other languages are in others .

Hello World

The hello world program at the beginning looks like this.

$ ./planck kHtketkltkltkotk tkWtkotkrtkltkdtk!tk:k0-tk0k0-Q

After bootstrapping by bootstrap.fs , it looks like this.

... continue reading