Skip to content
philburk edited this page Dec 17, 2014 · 3 revisions

How to Compile pForth on Unix or Mac

We provide a simple Makefile for compiling.

Details

  1. CD to "build/unix"
  2. Enter: make all

This is a complete build. It will create an executable image and associated "pforth.dic" file in the "fth/" folder. You may need to remove the -C89 option from the Makefile if there are too many warnings.

It will also create a standalone executable image that includes the dictionary compiled inside. To run it enter:

./pforth_standalone

Testing

Enter: make test

Return to Home

Clone this wiki locally