We're using CmuCL-17f on SGI-Irix-5.2 machines. Does anybody have a
feeling for whats needed to extend the FFI, defined in
"code/foreign.lisp", so it works with SGI?
I suspect it should be possible to use "code/foreign.lisp" as is, with
some slight modifications to the "foreign-segment-start" and
"foreign-segment-size" variables. Also it might not be too difficult
for someone with a good knowledge of the SGI/ELF object-file-format to
adjust the 'alien:def-alien-type' - structures so they take care of
SGI's headers.
This is how it looks like for one system:
#+(and sparc (not svr4))
(alien:def-alien-type exec
(alien:struct nil
(magic c-call:unsigned-long)
(text c-call:unsigned-long)
(data c-call:unsigned-long)
(bss c-call:unsigned-long)
(syms c-call:unsigned-long)
(entry c-call:unsigned-long)
(trsize c-call:unsigned-long)
(drsize c-call:unsigned-long)))
Thanks for any help.
--
Anders Vinjar T: + 47-22607968, Oslo, Norway