TASH demos Directory Index
This file describes the demonstration programs distributed
with TASH. These files are in the demos directory.
- Software use License Terms
- It is my intention to make this software as freely
available as possible, while not violating the rights of
the Regents of the University of California and Sun
Microsystems, Inc. This appears best done by simply using
the License Terms included with Tcl/Tk.
- make
- Before executing any of the TASH demo programs, be sure
to perform a make in the demos directory. This
will build the demo programs: freq and timer.
- freq
- The freq demo program is a frequency counter. The
Tcl code version is in freq.tcl and the Ada source
code is in freq.adb. This program demonstrates the
use of several Tcl features, including hash tables, from an
Ada program. Execute the freq demo program by
executing make test in the demos directory.
This will execute and compare the output of the Tcl and
Ada versions. Then, try comparing the execution time of the
two versions by executing make time. See the paper describing TASH
for more information on this demo program.
- timer
- The timer demo program was adapted from the demo
program distributed with Tk. The file, timer.tcl,
contains the Tcl/Tk code. It can be executed by wish,
invoking it as follows: wish -f timer.tcl. To demonstrate
the viability of the preliminary version of the TASH Ada interface
to Tk, execute the Tcl/Tk code with the Ada version of
wish: ../src/twash timer.tcl.
The Ada source code of timer is in the file, timer.adb.
Execute this version by simply invoking ./timer.