Subject: Re: choice for embedding Scheme implementation?
From: (Rob Warnock)
Date: 22 May 2002 04:16:40 GMT
Newsgroups: comp.lang.scheme
Message-ID: <acf638$2choa$>
Jens Axel S�gaard <> wrote:
| Todd Gillespie wrote:
| > I am looking at implementing a Scheme in a network application I am
| > working on.  What I can't conclude thus far, is which Scheme
| > implementation is "best" for my uses?
| For the sake of curiosoty I decided to see how to embed MzScheme.
| Be aware that Google digs up the embedding instructions for the
| version 103.
| The new are located is here:
| tml#%_sec_1.2

Those directions work for v.103, too.

Note that on MIPS/Irix platforms (and, presumably, others that
support dynamic loading of shared libraries), you can pre-link the
"libgc.a" & "libmzscheme.a" together into a single ""
[or separate .so's, whichever], which makes executables which embed
MzScheme quite small. E.g., the executable for the test program given
in the above URL ended up being only ~22 KB (stripped) on Irix 6.5.5:

	% % cc -g -o foo -rpath $cwd -I../../include foo.c -L. -lmzscheme
	% ls -l foo
	-rwxr-xr-x    1 rpw3     engr        22020 May 21 21:10 foo
	% /bin/time ./foo '(+ 12 34)'
	real 0.211, user 0.130, sys 0.051

Not as fast-starting as Perl or /bin/sh, perhaps, but good enough
for most interactive uses...


Rob Warnock, 30-3-510		<>
SGI Network Engineering		<>
1600 Amphitheatre Pkwy.		Phone: 650-933-1673
Mountain View, CA  94043	PP-ASEL-IA

[Note: and aren't for humans ]