[fpc-pascal] FFI or RTTI invoke for Apple arm64

Sven Barth pascaldragon at googlemail.com
Wed Sep 2 17:11:58 CEST 2020


Carlo Kok via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am Mi.,
2. Sep. 2020, 15:01:

> On Wed, Sep 2, 2020, at 14:40, Sven Barth via fpc-pascal wrote:
>
> Carlo Kok via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am
> Mi., 2. Sep. 2020, 11:09:
>
>
>
> Is there something else I need to do to allow FFI to work on arm64? (Does
> this depend on a dylib? or a static library?, and do I need to explicitly
> reference that?)
>
>
> You need the libffi library compiled for macOS on ARM (
> https://github.com/libffi/libffi ) and then you might need to add a
> "{$linklibrary ffi}" or so, cause the ffi unit was not set tested on macOS.
>
>
> Thanks. It doesn't look like it's officially supported:
>
> https://sourceware.org/libffi/
>

The calling convention is the same as on iOS, so you can try to build it
for that target... (and build from their development version on GitHub)

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200902/8e1f200e/attachment-0001.htm>


More information about the fpc-pascal mailing list