I have a bunch of lisp source files that contain functions that I need =
to access from a C program. However, due to memory limitations, I am =
not able to run a full lisp interpreter. My current plan is to strip =
down Clisp to only the code needed to load a .mem file. =20
Question #1: Is there a clean way to strip Clisp down in this fashion? =
I want to get rid of the whole UI and the .fas interpreter.
Next, I will embed the stripped down version of Clisp in my C program. =
I will have the FFI stuff in the .mem file so I can call the functions =
that I need whenever it is loaded.
Question #2: Does this sound possible?
Since memory is VERY tight, I would like to make a .mem file with only =
the things I need. I won't need many of the original functions since I =
will not be feeding it anything except a .mem file with everything =
Question #3: Is there a way to remove functions from the original =
"lispinit.mem" before dumping a new one?
Now for the really ugly part. I don't think that I can get the full =
version of Clisp running on my target platform. It is my understanding =
that this is necessary if I am going to create .mem file in the first =
place, since they are very non-portable.
Question #4: Is there a way to target a foreign platform when doing a =
memdump? If not, what is the smallest chunk of Clisp that I could do =
the dump with?
Thanks in advance for any help you have to offer.
From: Erik Arneson <erik@aa...> - 2001-11-12 06:07:42
On 11 Nov 01, Michael Zuercher <mzuerche@...> wrote:
> I have a bunch of lisp source files that contain functions that I
> need to access from a C program. However, due to memory
> limitations, I am not able to run a full lisp interpreter. My
> current plan is to strip down Clisp to only the code needed to load
> a .mem file.
For something like this, you might be better off going with a small
Scheme implementation (perhaps Guile?), or a CL implementation that's
made to be embedded in other programs, like ECLS.
> Erik Arneson <erik@...> MM, Ashland Lodge No. 23 <
> GPG Key ID: 1024D/43AD6AB8 RAM, Siskiyou Chapter No. 21 <
> <http://erik.arneson.org/> <http://www.aarg.net/mason> <