Skip to content
mwgkgk edited this page Jun 2, 2021 · 3 revisions

How to Compile pForth on Unix or Mac

We provide a simple Makefile for compiling.

Details

  1. CD to "platforms/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.

Comment by kristopherdjohnson, Dec 9, 2014 To build pForth using the Xcode 6.x toolchain, you need to remove the following options from FULL_WARNINGS in unix/Makefile: -c89 -fpeephole

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