Improve Makefile to make it more standard and so that
[pforth] / readme.txt
CommitLineData
bb6b2dcd 1README for pForth - a Portable ANS-like Forth written in ANSI 'C'\r
2\r
3by Phil Burk\r
e6231089 4with Larry Polansky, David Rosenboom and Darren Gibbs.\r
54b27a87 5Support for 64-bit cells by Aleksej Saushev.\r
bb6b2dcd 6\r
54b27a87 7Last updated: May 20, 2010 V26\r
e6231089 8\r
9Code for pForth is maintained on Google at:\r
10 http://code.google.com/p/pforth/\r
970d32b5 11 \r
e6231089 12Documentation for pForth at:\r
970d32b5 13 http://www.softsynth.com/pforth/\r
e6231089 14\r
15For technical support please use the pForth forum at:\r
16 http://groups.google.com/group/pforthdev\r
970d32b5 17 \r
bb6b2dcd 18The author is available for customization of pForth, porting to new\r
19platforms, or developing pForth applications on a contractual basis.\r
e6231089 20If interested, contact Phil Burk at:\r
970d32b5 21 http://www.softsynth.com/contacts.php\r
bb6b2dcd 22\r
23-- LEGAL NOTICE -----------------------------------------\r
24\r
25The pForth software code is dedicated to the public domain,\r
26and any third party may reproduce, distribute and modify\r
27the pForth software code or any derivative works thereof\r
28without any compensation or license. The pForth software\r
29code is provided on an "as is" basis without any warranty\r
30of any kind, including, without limitation, the implied\r
31warranties of merchantability and fitness for a particular\r
32purpose and their equivalents under the laws of any jurisdiction.\r
33\r
34-- Contents of SDK --------------------------------------\r
35\r
36 build - tools for building pForth on various platforms\r
37 build/win32/vs2005 - Visual Studio 2005 Project and Solution\r
38 build/unix - Makefile for unix\r
39 \r
40 csrc - pForth kernel in ANSI 'C'\r
41 csrc/pf_main.c - main() application for a standalone Forth\r
42 csrc/stdio - I/O code using basic stdio for generic platforms\r
43 csrc/posix - I/O code for Posix platform\r
44 csrc/win32 - I/O code for basic WIN32 platform\r
45 csrc/win32_console - I/O code for WIN32 console that supports command line history\r
46 \r
47 fth - Forth code\r
48 fth/util - utility functions\r
49\r
50-- How to build pForth ------------------------------------\r
51\r
52See pForth reference manual at:\r
53\r
54 http://www.softsynth.com/pforth/pf_ref.htm\r
55 \r
56-- How to run pForth ------------------------------------\r
57\r
58Once you have compiled and built the dictionary, just enter:\r
59 pforth\r
60\r
61To compile source code files use: INCLUDE filename\r
62\r
63To create a custom dictionary enter in pForth:\r
64 c" newfilename.dic" SAVE-FORTH\r
65The name must end in ".dic".\r
66\r
67To run PForth with the new dictionary enter in the shell:\r
68 pforth -dnewfilename.dic\r
69\r
70To run PForth and automatically include a forth file:\r
71 pforth myprogram.fth\r
72\r
73-- How to Test PForth ------------------------------------\r
74\r
75You can test the Forth without loading a dictionary\r
76which might be necessary if the dictionary can't be built.\r
77\r
78Enter: pforth -i\r
79In pForth, enter: 3 4 + .\r
80In pForth, enter: loadsys\r
81In pForth, enter: 10 0 do i . loop\r
82\r
83PForth comes with a small test suite. To test the Core words,\r
84you can use the coretest developed by John Hayes.\r
85\r
86Enter: pforth\r
87Enter: include tester.fth\r
88Enter: include coretest.fth\r
89\r
90To run the other tests, enter:\r
91\r
92 pforth t_corex.fth\r
93 pforth t_strings.fth\r
94 pforth t_locals.fth\r
95 pforth t_alloc.fth\r
96 \r
97They will report the number of tests that pass or fail.\r