<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>Hi,<br>
      Windows on ARM is not currently supported, although it shouldn't
      be too hard to add another variant of ARM CallArranger in the API
      which does the "right" thing for Windows. (I believe the core
      support is the same across Linux, MacOs and Windows, but there are
      differences how variadic calls are handled).</p>
    <p>If you have a PR which adds support for that platform, we'd be
      happy to take a look.</p>
    <p>Thanks<br>
      Maurizio<br>
    </p>
    <div class="moz-cite-prefix">On 05/10/2022 03:30, Saint Wesonga
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CY5PR21MB37700887C2BEBD5344C6B833E85D9@CY5PR21MB3770.namprd21.prod.outlook.com">
      
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hello,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">In our testing of the Foreign Function and
          Memory API (Preview) on Windows on ARM64, we discovered that
          it does not correctly support variadic functions as required
          by the Windows ABI. More specifically, floating point values
          to variadic functions need to be passed in general purpose
          registers on Windows for ARM64 as per
          <a href="https://learn.microsoft.com/en-us/cpp/build/arm64-windows-abi-conventions?view=msvc-170#addendum-variadic-functions" moz-do-not-send="true" class="moz-txt-link-freetext">
https://learn.microsoft.com/en-us/cpp/build/arm64-windows-abi-conventions?view=msvc-170#addendum-variadic-functions</a>.
          I would like to contribute a patch addressing this gap in the
          API. Would a PR into
          <a href="https://github.com/openjdk/panama-foreign" moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/openjdk/panama-foreign</a>
          be the appropriate way to do so?<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Thanks,<o:p></o:p></p>
        <p class="MsoNormal">-Saint Wesonga<o:p></o:p></p>
      </div>
    </blockquote>
  </body>
</html>