[Openmcl-devel] Accession already allocated arrays

R. Matthew Emerson rme at acm.org
Fri Feb 3 21:52:43 PST 2023



> On Feb 3, 2023, at 3:56 AM, Grégory Vanuxem <g.vanuxem at gmail.com> wrote:
> 
> Hello,
> 
> My question is simple, how can I obtain a MACPTR to array data? For usual data type it's easy from the documentation but for arrays I do not know how.

You might be able to use ccl:with-pointer-to-ivector.

I wrote up a few notes on this some time back (12 years! where did the time go?) at https://trac.clozure.com/ccl/wiki/ForeignFunctionInterface#LispArraysandForeignArrays





> 
> I’m adding code to FriCAS (0), a fork of Axiom (1), and the creation of arrays I’ll use is already implemented. I just need to have direct access to memory, so, in C, an address to the data stored in Clozure CL arrays.
> 
> I insist, FriCAS arrays are already implemented, I do not want to use (make-heap-ivector …) for example.
> 
> Regards,
> 
> Greg
> 
> (0): https://fricas.github.io/
> (1): http ://axiom-developer.org/
> 



More information about the Openmcl-devel mailing list