Forum > Windows

Windows 11 ARM

(1/1)

Igor Kokarev:
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:

--- Quote from: Igor Kokarev on July 01, 2021, 09:28:46 am ---Can I compile for aarch64/Windows with FPC 3.2.2 and Lazarus 2.2?
--- End quote ---

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


--- Quote from: Igor Kokarev on July 01, 2021, 09:28:46 am ---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.

--- End quote ---

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:
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.

PascalDragon:

--- Quote from: Igor Kokarev on July 01, 2021, 02:02:43 pm ---I hope that Win11/ARM support could be merged to FPC 3.2.3 fixes tree.
--- End quote ---

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:
Ok, I understand. Good luck with future development of FPC.

Navigation

[0] Message Index

Go to full version