|
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:
Get an Ada 95 CompilerYou 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/TkYou 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 TASHDownload 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 TASHOpen 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 systemDouble-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 programExecute these commands at a DOS prompt:
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 testsTo verify that TASH runs properly in your environment, build and run the TASH test programs: Build and run TASH demosHere are several sample programs you can peruse and learn how to write your own TASH programs:
Build and run TASH applicationsHere 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.
|