TCL ADA SHELL

 

Install and Build TASH on Windows

 

TASH is developed on a 600 MHz Celeron PC (192MB RAM) running Windows XP and GNAT 3.15p. It has also been tested with GNAT 3.15p in the following environments:

  • Sun/SPARC with Solaris 8

Get an Ada 95 Compiler

You will need an Ada 95 compiler to build TASH. A description of GNAT may be found at the Libre Software site and the compiler is available via anonymous ftp from ftp://cs.nyu.edu/pub/gnat/ and its mirrors.

Get and Install Tcl/Tk

You will also need Tcl/Tk itself to build TASH. The home page is the Tcl Developer Xchange. This provides additional information about Tcl/Tk and instructions on how to get and install it. Be sure to install, at a minimum, the binary installation along with the header files and libraries.

Get TASH

Download any one of tash841a.tar.gz, tash841a.tar.Z, or tash841a.zip. All three contain the necessary files for building both the Unix and Windows variants of TASH.

Uncompress and extract TASH

Open and extract the files from the zip archive file. You do have PKZIP, WinZip, or a similar program and know how to use it, don't you? If not, you can find one of them at any one of several Windows download sites such as http://www.download.com/, http://www.winfiles.com/, and http://www.tucows.com/.

Configure makefiles for your system

Double-click the setup.tcl file in the tash841a folder.

If Tcl/Tk was installed correctly, a wish script will run which sets values for several makefile macros used to customize your TASH build. In most cases (all the ones I've tested), the default values will be OK. If not, type in the correct values. Note that wish must be in your path for setup to run properly.

Press the Save button to create the makeconf file in the tash841a directory.

Build TASH and run the "Hello World" test program

Execute these commands at a DOS prompt:

cd tash841a\src
make all test

This will build the TASH library, the hello_world test program, and the Tcl/Tk library files (libtcl83.a and libtk83.a) required for linking.

Note that Unix and Windows use the same makefile. It was customized when you executed the setup.tcl file to work with Windows via the macros in the makeconf file.

If you get an error building tclmacro.o or tkmacro.o, this may be because the header files and libraries were not installed when installing Tcl/Tk. Do the Tcl/Tk installation again to be sure.

Build and run TASH tests

To verify that TASH runs properly in your environment, build and run the TASH test programs:

cd tash841a\tests
make all test

Build and run TASH demos

Here are several sample programs you can peruse and learn how to write your own TASH programs:

cd tash841a\demos
make all test

Build and run TASH applications

Here are some real TASH applications you can build and use as-is. Plang works somewhat like the Unix file command. It tries to figure out what programming language each file on its command line was written in.

cd tash841a\apps
make all test