From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 508 invoked by alias); 2 Jun 2006 14:22:54 -0000 Received: (qmail 497 invoked by uid 22791); 2 Jun 2006 14:22:54 -0000 X-Spam-Check-By: sourceware.org Received: from s1.nostraby.net (HELO s1.nostraby.net) (66.199.240.146) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 02 Jun 2006 14:22:51 +0000 Received: from [194.226.120.45] (helo=sg.belavox.gomel.by) by s1.nostraby.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.52) id 1FmBoB-0005ZM-Mf for ecos-discuss@ecos.sourceware.org; Fri, 02 Jun 2006 18:43:32 +0300 Date: Fri, 02 Jun 2006 14:22:00 -0000 From: Sergei Gavrikov To: ecos-discuss@ecos.sourceware.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] kernel+shell: tclsh X-SW-Source: 2006-06/txt/msg00026.txt.bz2 Hello I'd read a polemic about a redboot+kernel+shell behavior. I often use tclsh for my own needs and think why do not use it? John Ousterhout originally created Tcl as exactly an embeddable extension language. A bit googling net I found 'The Jim Interpreter' (http://jim.berlios.de). The Jim is the Tcl8.5 based cut (hack) for small footprint systems. It is an open source project. In 5 minutes I compiled jim for my LPC2294 target (2M RAM) with -DJIM_ANSIC -Os flags (I used the `default' ecos template with a `posix' package). I'd got a binary image about ~180k (the lpc2294 has 256k on-chip flash memory). After a burning the image I'd got a well know shell (well, I changed the Jim default prompt :). % info commands subst list ref time debug test eval env lrange setref lappend proc break llength return linsert error catch split info rand collect if join concat lambda source global switch getref for lreverse append format finalize lmap package set lambdaFinalizer scan while * + dict - uplevel continue / rename foreach lset tailcall upvar unset expr load exit lindex incr puts lsort range string % I think that lite standard scripting language (shell) may be useful for yours aims too. Happy scripting, Sergei Gavrikov -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss