Running PicForth

PicForth is a command line driven program. It is invoked such:

picf16 myprog.f

This will produce an output file called out.asm.


A more sophisticated example is:

picf16 -i C:\mylib -o myprog.asm -s 128 myprog.f

This will look in directory mylib for included files, output a file named myprog.asm, and allocate 128 bytes for the stacks.


Simply typing picf16 without any switches causes it to display a short description of the available options.

PicForth is suitable for use with make utilities, but it must process all forth files every time it is run, so a batch file can be just as effective.


Command Line Options

Switch Parameter Description
-i directory search this directory for included files
-o filename set the output filename
-s n set the stacks to use n bytes
-r n compile strings into rom starting at address n