Compiling on Unix

philburk edited this page Dec 17, 2014 · 2 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.

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

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.