Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2024-04

Free Pascal for Windows aarch64 Bug Bounties

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Sinan Karaca

Dear Free Pascal Compiler Engineering Team:

We have posted the following bug bounties:

$500 for the Win64 AArch64 optimizer bug:
https://gitlab.com/freepascal.org/fpc/source/-/issues/40198

$500 for the Win64 AArch64 exception handling:
https://gitlab.com/freepascal.org/fpc/source/-/issues/40203

Per the following thread:

https://forum.lazarus.freepascal.org/index.php/topic,66952.msg515430.html#msg515430

Larger bounties are negotiable upon request!

Let's get Lazarus up-and-running for Windows on aarch64!!!

John Gaver

Reply by email

J. Gareth Moreton
to Sinan Karaca

You've piqued my interest.  I currently only have the ability to develop on aarch64-linux (Raspberry Pi 400), but I'm curious to know if I can get a version of Windows to run on it, even if the performance will be very bad.

So far I've tried to reproduce the issues on aarch64-linux without any success.  40203 makes sense because it may be a specific issue with Windows exception handling, but 40198 is a mystery because it's more closely tied with code generation.  Can you verify that the problem illustrated on 40198 still occurs on the trunk? (I've confirmed that if there are more than 10 case statements, the code generator attempts to use a jump table unless optimisations are turned off)

Kit

Sinan Karaca wrote 31 lines
Dear Free Pascal Compiler Engineering Team: We have posted the following bug bounties: $500 for the Win64 AArch64 optimizer bug: https://gitlab.com/freepascal.org/fpc/source/-/issues/40198 $500 for the Win64 AArch64 exception handling: https://gitlab.com/freepascal.org/fpc/source/-/issues/40203 Per the following thread: Lazarus for Windows on aarch64 (ARM64) - Native Compiler <https://forum.lazarus.freepascal.org/index.php/topic,66952.msg515430.html#msg515430> lazarus.freepascal.org <https://forum.lazarus.freepascal.org/index.php/topic,66952.msg515430.html#msg515430> favicon.ico <https://forum.lazarus.freepascal.org/index.php/topic,66952.msg515430.html#msg515430> <https://forum.lazarus.freepascal.org/index.php/topic,66952.msg515430.html#msg515430> Larger bounties are negotiable upon request! Let's get Lazarus up-and-running for Windows on aarch64!!! John Gaver _______________________________________________ fpc-devel maillist https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Sven Barth
to J. Gareth Moreton

J. Gareth Moreton via fpc-devel schrieb am
Sa., 27. Apr. 2024, 10:00:

You've piqued my interest. I currently only have the ability to develop on aarch64-linux (Raspberry Pi 400), but I'm curious to know if I can get a version of Windows to run on it, even if the performance will be very bad.

In a Pi 4 it runs relatively well. I've done it both natively and as a KVM. Check the WoRProject ( https://worproject.com/ ).
A Pi 5 would be even better though there you currently might need to use KVM as the native drivers are still a work in progress.

Show quoted text 8 lines
So far I've tried to reproduce the issues on aarch64-linux without any success. 40203 makes sense because it may be a specific issue with Windows exception handling, but 40198 is a mystery because it's more closely tied with code generation. Can you verify that the problem illustrated on 40198 still occurs on the trunk? (I've confirmed that if there are more than 10 case statements, the code generator attempts to use a jump table unless optimisations are turned off)

It's a Windows specific issue, cause the PE format has slightly different relocation requirements than the ELF format.

Regards,
Sven

Reply by email

J. Gareth Moreton
to Sven Barth

I figured that would be the case with the PE format.  Fun times ahead!

Kit

Sven Barth wrote 33 lines
J. Gareth Moreton via fpc-devel schrieb am Sa., 27. Apr. 2024, 10:00: You've piqued my interest.  I currently only have the ability to develop on aarch64-linux (Raspberry Pi 400), but I'm curious to know if I can get a version of Windows to run on it, even if the performance will be very bad. In a Pi 4 it runs relatively well. I've done it both natively and as a KVM. Check the WoRProject ( https://worproject.com/ ). A Pi 5 would be even better though there you currently might need to use KVM as the native drivers are still a work in progress. So far I've tried to reproduce the issues on aarch64-linux without any success.  40203 makes sense because it may be a specific issue with Windows exception handling, but 40198 is a mystery because it's more closely tied with code generation.  Can you verify that the problem illustrated on 40198 still occurs on the trunk? (I've confirmed that if there are more than 10 case statements, the code generator attempts to use a jump table unless optimisations are turned off) It's a Windows specific issue, cause the PE format has slightly different relocation requirements than the ELF format. Regards, Sven _______________________________________________ fpc-devel maillist https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email