[Openmcl-devel] FFI question: passing aligned pointers

Artem Mironov artem.mironov at gmail.com
Fri Dec 3 02:14:53 PST 2010


Hello,

I'm new to CCL and to Lisp in general. I have a question about passing
C pointers to/from C functions using (external-call ...).

A C pointers returned by system's malloc() are aligned by at least 8 bytes.
Such pointers can be safely passed to/from lisp as fixnums, without boxing
into macptr.

I'm looking for something like this:

(external-call "c_function" :fixnum 0 :int 7 :fixnum)

Is there such feature or where to look to try to implement it?

-- 
Best Regards
Artem



More information about the Openmcl-devel mailing list