[ANN] FFI for ARM

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[ANN] FFI for ARM

douglas mcpherson

I’ve published an alpha version of an FFI for the ARM architecture. It is in the class ThreadedARMFFIPlugin in the VMMaker.oscog package on source.squeak.org. The generated sources are also available at http://squeakvm.org/svn/squeak/branches/Cog/src/plugins/SqueakFFIPrims/ARM32FFIPlugin.c

It passes all existing FFI tests and all tests I used for development. I plan to commit my development tests to the FFI-Tests package within the next few days. These extra tests are important because existing tests don’t exercise some of the trickier cases choosing between registers and stack when marshaling function parameters.

So far, the ARM FFI has only been tested with the Cog/Stack VM on a Raspberry Pi. I plan to also test it on the BeagleBone Black which has a slightly different ARM chip.

The overwhelming majority of the credit for this must go to Eliot Miranda because his FFI design works so well, and because he helped me immensely along the way.  And many thanks to Tim Rowledge for showing me how to build a Cog/Stack VM on the RPi and answering numerous other questions. Any bugs in the ARM version of the FFI are my responsibility.

Enjoy!
Doug
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] FFI for ARM

timrowledge


On 29-04-2014, at 1:50 PM, Douglas McPherson <[hidden email]> wrote:

>
> I’ve published an alpha version of an FFI for the ARM architecture. It is in the class ThreadedARMFFIPlugin in the VMMaker.oscog package on source.squeak.org. The generated sources are also available at http://squeakvm.org/svn/squeak/branches/Cog/src/plugins/SqueakFFIPrims/ARM32FFIPlugin.c

Congratulations Doug. This will be very helpful on the Pi!


tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Strange OpCodes: WAF: Warn After the Fact


Reply | Threaded
Open this post in threaded view
|

Re: [ANN] FFI for ARM

David T. Lewis
In reply to this post by douglas mcpherson
 
On Tue, Apr 29, 2014 at 01:50:47PM -0700, Douglas McPherson wrote:
>
> I?ve published an alpha version of an FFI for the ARM architecture. It is in the class ThreadedARMFFIPlugin in the VMMaker.oscog package on source.squeak.org. The generated sources are also available at http://squeakvm.org/svn/squeak/branches/Cog/src/plugins/SqueakFFIPrims/ARM32FFIPlugin.c
>
> It passes all existing FFI tests and all tests I used for development. I plan to commit my development tests to the FFI-Tests package within the next few days. These extra tests are important because existing tests don?t exercise some of the trickier cases choosing between registers and stack when marshaling function parameters.
>
> So far, the ARM FFI has only been tested with the Cog/Stack VM on a Raspberry Pi. I plan to also test it on the BeagleBone Black which has a slightly different ARM chip.
>
> The overwhelming majority of the credit for this must go to Eliot Miranda because his FFI design works so well, and because he helped me immensely along the way.  And many thanks to Tim Rowledge for showing me how to build a Cog/Stack VM on the RPi and answering numerous other questions. Any bugs in the ARM version of the FFI are my responsibility.
>

Doug,

Excellent news. Thanks!

Dave