Re: Accession already allocated arrays
"R. Matthew Emerson" <[email protected]>
| Newsgroups | gmane.lisp.openmcl.devel |
|---|---|
| Message-ID | <[email protected]> |
> On Feb 3, 2023, at 3:56 AM, Grégory Vanuxem <[email protected]> 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/ >