Re: [fpc-devel] Windows for AArch64

2024-05-26 Thread J. Gareth Moreton via fpc-devel
Hopefully the first issue has now been resolved, although it may require refactoring later. https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/691 The main issue is that, for some reason, trying to dereference from a code section instead of a data section raises an access violation,

Re: [fpc-devel] Windows for AArch64

2024-05-26 Thread J. Gareth Moreton via fpc-devel
Thank you for all your assistance with this Sven. One trick I have been doing is writing equivalent programs in C/C++ to see how Clang and MSVC convert them into equivalent assembly language.  It's providing some insights at least in regards to what works.  My first attempted fix (putting the

Re: [fpc-devel] Windows for AArch64

2024-05-26 Thread Sven Barth via fpc-devel
J. Gareth Moreton via fpc-devel schrieb am Sa., 25. Mai 2024, 22:18: > Indeed - I'm not giving up! I installed Clang via LLVM. Which of the EXE > files is actually the assembler? It's not entirely clear (no "clang-as", > for example). (Although I trust it works!) > Simply check what FPC call

Re: [fpc-devel] Windows for AArch64

2024-05-25 Thread J. Gareth Moreton via fpc-devel
Indeed - I'm not giving up!  I installed Clang via LLVM.  Which of the EXE files is actually the assembler?  It's not entirely clear (no "clang-as", for example).  (Although I trust it works!) I've got some ideas as to how to start debugging.  I will solve this puzzle! Kit On 25/05/2024 16:42

Re: [fpc-devel] Windows for AArch64

2024-05-25 Thread Sven Barth via fpc-devel
J. Gareth Moreton via fpc-devel schrieb am Sa., 25. Mai 2024, 10:49: > Thought I'd give a small update. > > I was distracted over the past month with work, the arm-linux blocking > bug and a couple of merge requests which were much easier to develop! > I'm now having a solid bash at getting Windo

Re: [fpc-devel] Windows for AArch64

2024-05-25 Thread J. Gareth Moreton via fpc-devel
Thought I'd give a small update. I was distracted over the past month with work, the arm-linux blocking bug and a couple of merge requests which were much easier to develop!  I'm now having a solid bash at getting Windows on ARM64 working.  It's proving harder than anticipated because I can't

Re: [fpc-devel] Windows for AArch64

2024-04-29 Thread J. Gareth Moreton via fpc-devel
Thanks Sven.  I'm predicting a future of Windows on AArch64, since Windows is not going anywhere but Arm processors are starting to really take off beyond mobile devices. Kit On 29/04/2024 21:31, Sven Barth via fpc-devel wrote: Am 29.04.2024 um 08:42 schrieb J. Gareth Moreton via fpc-devel: A

Re: [fpc-devel] Windows for AArch64

2024-04-29 Thread Sven Barth via fpc-devel
Am 29.04.2024 um 08:42 schrieb J. Gareth Moreton via fpc-devel: Aah, partially answered.  It's not supported in 3.2.2, but there is better support for it in the trunk. You had me worried there for a moment that someone regenerated the makefiles with an older version of fpcmake... ^^' Anyway,

Re: [fpc-devel] Windows for AArch64

2024-04-28 Thread J. Gareth Moreton via fpc-devel
Aah, partially answered.  It's not supported in 3.2.2, but there is better support for it in the trunk. Kit On 29/04/2024 06:42, J. Gareth Moreton via fpc-devel wrote: Hi everyone, I may need some help with this one.  Is there a tried and tested way of getting FPC to build and install on aar

[fpc-devel] Windows for AArch64

2024-04-28 Thread J. Gareth Moreton via fpc-devel
Hi everyone, I may need some help with this one.  Is there a tried and tested way of getting FPC to build and install on aarch64-win64? (I assume that's the correct OS for Windows for ARM64).  The make script doesn't seem to accept the combination of CPU_TARGET=aarch64 OS_TARGET=win64 and it's