installing FICL on windows with MinGW

Posted by superuser Tue, 02 Nov 2010 08:19:00 GMT

Ficl is a complete programming language interpreter designed to be embedded into other systems (including firmware based ones) as a command, macro, and development prototype language (about ficl. I use FICL on my FreeBSD server as Forth interpreter, and i decided to install it also on my windows/win32 workstation. Here are my notes:

You should have an ANSI C compiler in your machine. I use MinGW (includes gcc) with MSYS.

- Download ficl-4.1.0 (windows version 2010/10/07)

- Extract with your favorite file archiver ( as 7-zip )

- Enter the ficl directory

lsr@AR-1BBK4 ~
$ cd ficl-4.1.0

and build the app using the Makefile.ansi makefile.

lsr@AR-1BBK4 ~/ficl-4.1.0
$ cp Makefile.ansi  Makefile

MinGW comes with the gcc v.4.5.0 (GCC) compiler, so i have to declare this on my Makefile (ansi):

lsr@AR-1BBK4 ~/ficl-4.1.0
$ vim Makefile

1 OBJECTS= dictionary.o system.o fileaccess.o float.o double.o prefix.o search
2 HEADERS= ficl.h ficlplatform/ansi.h
3 #
4 # Flags for shared library
5 TARGET=  -ansi -DFICL_ANSI  # riscos MOTO_CPU32.
6 SHFLAGS = -fPIC
7 CFLAGS= -O $(SHFLAGS)
8 CPPFLAGS= $(TARGET) -I.
9 CC = gcc  ###############<- HERE ##################
0 LIB = ar cr
1 RANLIB = ranlib
...

Now we are ready to build :

lsr@AR-1BBK4 ~/ficl-4.1.0
$ make

In less than 3 minutes your executable ficl.exe will be created in the working directory.

To start the ficl interpreter run ficl.exe

lsr@AR-1BBK4 ~/ficl-4.1.0

$ ficl.exe
loading CORE EXT words
loading SEARCH & SEARCH-EXT words
loading Johns-Hopkins locals
loading MARKER
loading ficl O-O extensions
loading ficl utility classes
loading ficl string class
Ficl version 4.1.0
Nov  1 2010
ok>

Posted in  | Tags , ,  | no comments

Comments

(leave url/email »)

   Preview comment