From Panama 17 to 19, ability to get M1?
Jorn Vernee
jorn.vernee at oracle.com
Mon Jan 2 10:57:06 UTC 2023
Hi Martin,
On 23/12/2022 17:20, Martin Pernollet wrote:
> Hi,
>
> Would anyone suggest examples showing how to use Panama 19 instead of
> 17? A couple of things have changed ( e.g. how to use the new
> locator.allocateArray(new ValueLayout.OfDouble(
> , and deal with all other datatypes, strings, etc).
The general idea is to either use one of the layout constants in the
ValueLayout class, such as JAVA_DOUBLE. Or use a layout generated by
jextract for a specific type. For strings the type would be a pointer,
so the ValueLayout.ADDRESS layout or the C_POINTER layout generated by
jextract can be used for instance.
>
> One additional question : when will ARM be supported to run panama on
> Apple M1?
MacOs/AArch64 (i.e ARM) has been supported since Java 17 [1]
Jorn
[1]: https://github.com/openjdk/jdk/pull/3617
>
> Regards,
>
> Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20230102/93fb822f/attachment.htm>
More information about the panama-dev
mailing list