Re: Fun with CLISP FFI
- From: "Kaz Kylheku" <kkylheku@xxxxxxxxx>
- Date: 23 Nov 2006 20:26:58 -0800
Kaz Kylheku wrote:
After this experiment, I have a hunch that that the platform glue in
mcvs can be rewritten purely in FFI code, eliminating the need to do
any C compiling and linking.
Done!
I now have a version of Meta-CVS which builds and runs with no C
compiling and custom linking at all. You don't need any dev tools other
than an installation of CLISP.
On the downside, it's tied to the glibc2 ABI. For instance, to stat a
filesystem object, it calls the libc.so.6 ``secret'' entry point
"__xstat64". The structure that is used is field-for-field compatible
with glibc's "struct stat64", which has padding fields, and special
extensions like nanoseconds fields on the time stamps.
The install script is super simple. Just load everything, spit out a
mem image, and generate the script to invoke clisp with that mem image.
The mcvs-upgrade tool is gone. I wasn't able to use :EXECUTABLE T in
SAVEINITMEM, because this feature is slightly braindamaged. If you pass
arguments to the resulting program, they are processed as CLISP
arguments! Oops.
.
- References:
- Fun with CLISP FFI
- From: Kaz Kylheku
- Fun with CLISP FFI
- Prev by Date: Re: teaching kids functional programming
- Next by Date: Re: asdf woes: asdf:missing-dependency
- Previous by thread: Fun with CLISP FFI
- Next by thread: Debian: SBCL: fails to install
- Index(es):
Relevant Pages
|