Recent

Author Topic: Windows 11 ARM  (Read 2358 times)

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 347
Windows 11 ARM
« on: July 01, 2021, 09:28:46 am »
Hi,

Can you remind me a current state of FPC and Lazarus regarding Windows 11 ARM?

Can I compile for aarch64/Windows with FPC 3.2.2 and Lazarus 2.2?

Also did you hear about ARM64EC announced recently by Microsoft where it possible to mix x86-64 and arm64 code on Windows 11 ARM? Personally I don't need this mode, probably it would be useful for somebody who want to link native executable for ARM64 and x86-64 libraries.

PascalDragon

  • Hero Member
  • *****
  • Posts: 3324
  • Compiler Developer
Re: Windows 11 ARM
« Reply #1 on: July 01, 2021, 01:46:35 pm »
Can I compile for aarch64/Windows with FPC 3.2.2 and Lazarus 2.2?

You need to use FPC 3.3.1 though your milage will vary. Lazarus was not yet tested in any way.

Also did you hear about ARM64EC announced recently by Microsoft where it possible to mix x86-64 and arm64 code on Windows 11 ARM? Personally I don't need this mode, probably it would be useful for somebody who want to link native executable for ARM64 and x86-64 libraries.

This is going to be a whole different level of difficulty as one first needs to research what exactly Microsoft is doing there on the ABI level and how mixed code interacts. This would also only really be useful to access non-FPC x86_64 code on aarch64-win64.

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 347
Re: Windows 11 ARM
« Reply #2 on: July 01, 2021, 02:02:43 pm »
Thanks for your reply!

I hope that Win11/ARM support could be merged to FPC 3.2.3 fixes tree.

If Microsoft release Windows 11 ARM for M1 Macs, we already have a good hardware for testing. And some FPC developers also have M1 Macs.

Personally, I will avoid arm64ec and plan to release a pure arm64 code.
« Last Edit: July 01, 2021, 02:04:16 pm by Igor Kokarev »

PascalDragon

  • Hero Member
  • *****
  • Posts: 3324
  • Compiler Developer
Re: Windows 11 ARM
« Reply #3 on: July 01, 2021, 02:08:55 pm »
I hope that Win11/ARM support could be merged to FPC 3.2.3 fixes tree.

No. As a general rule new features are not merged to the fixes branch and new targets are new features. aarch64-darwin was an exception, because Apple made a full switch to Aarch64. Windows is still mainly x86 and thus there is no need to rush a release and you can just as well simply use the trunk compiler.

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 347
Re: Windows 11 ARM
« Reply #4 on: July 01, 2021, 03:22:12 pm »
Ok, I understand. Good luck with future development of FPC.

 

TinyPortal © 2005-2018