-
Notifications
You must be signed in to change notification settings - Fork 32
FfiTodo
Felix S. Klock II edited this page Jul 28, 2013
·
1 revision
Lars put an FFI into Larceny. PnkFelix has never tried to use it. It might still work.
It probably only works on Unix.
-
LarsHansen says:
- the 386 callout FFI did work in some early version of Petit Larceny under Windows, actually. All the FFIs are ABI-dependent, not just architecture-dependent. Not all CPUs have standard ABIs for languages on those CPUs, though that seems to be better now (and even gcc plays nice). The SPARC FFI is not Unix-specific, but the use of dlopen to load shared objects is.
-
PnkFelix says:
- Note that we have both
larceny_lib/ffi.sch
andAuxlib/std-ffi.sch
(akalib/Base/std-ffi.sch
) to draw from. Its not clear which one of these is more up to date. Ray Racine (Ticket #149) was probably usingAuxlib/std-ffi.sch
...
- Note that we have both
-
#178 is a sign that something is not robust within
foreign-variable
-
Ffi/Dlsym has some documentation of a inconsistency between Lars' original spec for
dlsym
and how it behaves now. PnkFelix thinks he should resolve this issue.