Tool architecture vs build-time architeture vs run-time architecture

Manuel Bleichenbacher manuel.bleichenbacher at gmail.com
Mon Aug 22 10:39:58 UTC 2022


I'm migrating this detail question over from the panama-dev mailing list:
can jextract built for macOS on Intel run on macOS for ARM generate correct
code for macOS on ARM?

Note that the architecture (Intel vs ARM) affects three separate things:

   1. jextract (the JVM and jextract are built for a certain platform and
   architecture)
   2. the architecture where jextract is run (macOS can run Intel code on
   ARM)
   3. the architecture of the resulting / the architecture where the
   generated code will be run

I understand that separate code is needed for different platforms and
architectures. So typically you would run jextract on each platform
separately. But what decides if jextract generates code for ARM or Intel?
Is it (1) the jextract variant or is it (2) the operating system it is run
on? Or does it even generate an unusable result if (1) and (2) are
different?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jextract-dev/attachments/20220822/efadda09/attachment.htm>


More information about the jextract-dev mailing list