Recent

Author Topic: Windows on ARM64  (Read 1236 times)

Wallaby

  • Jr. Member
  • **
  • Posts: 78
Windows on ARM64
« on: July 05, 2022, 01:49:11 am »
I have a tool that I need to compile for the ARM64 CPU on Windows. I know, there is x64 emulator on Windows for ARM64, but it won't work for me since the tool makes use of a native ARM64 DLL and a system driver.

Now the list of supported platforms lists Windows for ARM64, but does anyone know how to build the cross-compiler x86-arm64?

Or is there any other way to build an Windows ARM64 binary with lazarus?

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: Windows on ARM64
« Reply #1 on: July 05, 2022, 06:08:09 am »
It was discussed in the mailing list - Win aarch64 code is not ready in FPC.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: Windows on ARM64
« Reply #2 on: July 05, 2022, 02:00:27 pm »
I have a tool that I need to compile for the ARM64 CPU on Windows. I know, there is x64 emulator on Windows for ARM64, but it won't work for me since the tool makes use of a native ARM64 DLL and a system driver.

Now the list of supported platforms lists Windows for ARM64, but does anyone know how to build the cross-compiler x86-arm64?

It's mentioned here. Please note that you should use the cross compiler (which you can run from Windows on ARM64 after all as well), because the native compiler still crashes when actually compiling something. Also whatever causes the native compiler to crash might also lead to problems in your own application (it's simply not yet known what the exact issue is).

Luc

  • Jr. Member
  • **
  • Posts: 59
Re: Windows on ARM64
« Reply #3 on: June 06, 2023, 02:48:22 pm »
Sorry to bring back this topic but is there any news about this?
x64 emulation is really slow on windows ARM so it would be really nice to have an ARM64 compiler
Win 11 ARM (Running in Parallel VM - Mac OSX) - Lazarus 2.2.6 - i386-win32/win64

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: Windows on ARM64
« Reply #4 on: June 06, 2023, 09:59:53 pm »
No, there is no news.

Wallaby

  • Jr. Member
  • **
  • Posts: 78
Re: Windows on ARM64
« Reply #5 on: June 07, 2023, 01:36:51 am »
From my experience with the trunk compiler, it works in principle for simple programs, but there are two showstopper bugs I have reported:

Win64 AArch64 optimizer bug and Win64 AArch64 exception handling

I am happy to pay anyone in the FPC team who is able to fix those issues (aka offer a bounty), but I don't know how long the fixing might take. I guess $300 US sounds reasonable?...
« Last Edit: June 07, 2023, 01:42:11 am by Wallaby »

 

TinyPortal © 2005-2018