[Ecls-list] Arrays to C and C to Arrays....
Gabriel Dos Reis
gdr at integrable-solutions.net
Mon Nov 9 00:12:53 UTC 2009
On Sun, Nov 8, 2009 at 5:55 PM, Waldek Hebisch <hebisch at math.uni.wroc.pl> wrote:
>> From: Brad Beer <bradwbeer at gmail.com>
>> > How can I convert C arrays to Lisp Arrays and vice-versa using only the FFI?
>>
>> http://common-lisp.net/project/cffi/manual/html_node/Pointers.html should be
>> enough for most needs.
>>
>
> The most important operation is getting address of Lisp array,
> so that foreign code can operate on its content without copying.
> Juanjo explained how to do this in ECL, and other implementation
> seem to have their own way. But last time when I checked I was
> unable to find such an operation in CFFI (and also UFFI) manuals.
> Are you saying it is there?
See how OpenAxiom does it with ECL. See src/boot/ast.boot
-- Gaby
More information about the ecl-devel
mailing list