Recent

Author Topic: Windows 11 ARM  (Read 7127 times)

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 370
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: 5486
  • 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: 370
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: 5486
  • 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: 370
Re: Windows 11 ARM
« Reply #4 on: July 01, 2021, 03:22:12 pm »
Ok, I understand. Good luck with future development of FPC.

dieselnutjob

  • Full Member
  • ***
  • Posts: 217
Re: Windows 11 ARM
« Reply #5 on: October 29, 2023, 01:49:54 pm »
Hi
I downloaded trunk fpc from here
https://downloads.freepascal.org/fpc/snapshot/trunk/aarch64-win64/
unpacked it on a Linux server and then downloaded to a folder on my ARM Windows 11 thing.
When I go to the bin/aarch64-win64 directory and run fpc.exe there is a pause for a couple of seconds, and then it just returns to command prompt with no output.
I'm running on a Pi4 with test Windows 11 build.
What is my mistake please?

PascalDragon

  • Hero Member
  • *****
  • Posts: 5486
  • Compiler Developer
Re: Windows 11 ARM
« Reply #6 on: October 30, 2023, 10:57:41 pm »
What is my mistake please?

FPC is not yet natively usable on aarch64-win64.

 

TinyPortal © 2005-2018