
This directory contains code and an initial filesystem image along with a verbatim
copy of tclAppInit.c from the TCL 8.3 distribution and is designed to build tclsh.

The init.c is based on work by Eric Norum.  The network configuration 
(network_config.h) is taken from networkconfig.h found in the RTEMS demos package.

This application requires libtcl; look in the RTEMS contrib directory on the OAR 
website which contains an RTEMS-specific TCL package.

A few notes:
----------------------------------------------------------------------------------
1. This application is not functional.  It compiles and starts, but
crashes with an illegal address exception when run on a 68360 processor with
4 meg of RAM (gen68360 BSP).

2. Don't forget to change network_config.h as required along with 
   ./filesystem/etc/hosts and ./filesystem/etc/host.conf!

3. If you get this working or if you make improvements, please post the results!



TO-DO (that I know about)
-----------------------------------------------------------------------------------
a. Clean up Makefile so that the tcl debug lib is linked for "make debug" and the
   stripped tcl lib is linked in for the default target.
a.1 Clean up the tarfile generation and objcopy in the Makefile (can use 
    same approach as the cleanup for the http demo; see mail archives)
b. Clean up OS options in init.c (exec ram size, etc...)
c. Get tclsh to run without crashing
d. Figure out what environment vars need to be set
e. Figure out what TCL scripts, if any, need to be sourced (see ./filesystems/lib)
f. Develop some type of regression test to verify that the TCL lib and interpreter
   is working.
g. Fix those pesky implict declaration warnings in init.c





 
Keith Outwater,
Raytheon Missile Systems
vac4050@cae597.rsc.raytheon.com
