Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Sep 2001 22:12:27 -0700
From:      Bakul Shah <bakul@bitblocks.com>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        Jim Bryant <kc5vdj@yahoo.com>, Dave Cornejo <dave@dogwood.com>, Poul-Henning Kamp <phk@critter.freebsd.dk>, current@freebsd.org
Subject:   Re: HEADS UP: ACPI CHANGES AFFECTING MOST -CURRENT USERS 
Message-ID:  <200109060512.BAA29542@devonshire.cnchost.com>
In-Reply-To: Your message of "Wed, 05 Sep 2001 20:33:44 PDT." <20010905203344.A82981@xor.obsecurity.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > I doubt if the bootloader will ever change from FORTH, but if it
> > does, I suggest LISP as the preferred choice on a short-list of
> > potential replacements.
> 
> Show us a suitable LISP interpreter, then.

I don't know what size constraints the bootloader has to have
but the smallest two lisp interpreters I have found are:

$ cd /usr/ports/lang/slisp/work/slisp-1.2/src
$ size slisp
   text    data     bss     dec     hex filename
  17872     616    3584   22072    5638 slisp

$ wc *.h *.c
      67     321    2266 extern.h
      69     335    2053 slisp.h
     927    2438   15990 funcs.c
     189     730    4707 lexer.c
     147     458    3232 main.c
     287     832    6358 object.c
     136     470    3370 parser.c
    1822    5584   37976 total

slisp has most of the common lisp constructs.

$ cd ~/lang/Scheme/tinyscm-1.27
$ size scheme 
   text    data     bss     dec     hex filename
  61342    4476    3480   69298   10eb2 scheme
$ wc *.h *.c
      12      33     247 dynload.h
     344    1136    9221 scheme.h
     126     292    2589 dynload.c
    4445   12353  125421 scheme.c
    4927   13814  137478 total

Tinyscheme is a mostly complete R5RS Scheme (R5RS is the
closest thing to a Scheme standard) -- everything except
complex and rational number types, bignums, hygenic macros
and call-with-values and unwind-protect.  You can probably
subset it quite a bit to make it far smaller (e.g. the real
number type and advanced math functions to avoid linking in
libm).  If it matters to you, it has a BSD style licence.

http://tinyscheme.sourceforge.net/home.html
http://tinyscheme.sourceforge.net/tinyscheme-1.27.tar.gz

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109060512.BAA29542>