Re: [fpc-devel] ARM/AARCH64 work

2021-04-26 Thread J. Gareth Moreton via fpc-devel
Submitted a patch with the "magic division" and a second patch with a new bench test to showcase the improvements. I hope it is to your satisfaction. https://bugs.freepascal.org/view.php?id=38806 Gareth aka. Kit On Mon 26/04/21 16:25 , "J. Gareth Moreton" gar...@moreton-family.com sent: > I

Re: [fpc-devel] ARM/AARCH64 work

2021-04-26 Thread J. Gareth Moreton via fpc-devel
I meant to say "I'm not sure" at the end there. The joys of writing an e-mail on the phone! Gareth aka. KIt On Mon 26/04/21 15:14 , "J. Gareth Moreton via fpc-devel" fpc-devel@lists.freepascal.org sent: > Indeed. I'm reusing the code that generates > > the magic constant for me and any

Re: [fpc-devel] ARM/AARCH64 work

2021-04-26 Thread J. Gareth Moreton via fpc-devel
Indeed. I'm reusing the code that generates the magic constant for me and any additional flags. I've also fixed the bug that caused the failure in my test. Just doing some final cheeks and improving my bench test. It might be possible to make more code cross platform later on. I'mm not due.

Re: [fpc-devel] ARM/AARCH64 work

2021-04-26 Thread Florian Klämpfl via fpc-devel
> Am 26.04.2021 um 08:09 schrieb J. Gareth Moreton via fpc-devel > : > > and the other is implementing "magic division" > where division by a constant is replaced with a multiplication. You are aware there is code for arm 32 bit and e.g. x86 which can most likely be reused/adapted? It

Re: [fpc-devel] ARM/AARCH64 work

2020-08-07 Thread Joost van der Sluis
Op 07-08-2020 om 08:00 schreef Sven Barth via fpc-devel: Yes, the fpc.cfg is intended to have absolute paths and its located either in the global /etc/fpc.cfg or the user specific ~/.fpc.cfg (where ~ is your home directory). When you use the -va parameter, the compiler will show you where

Re: [fpc-devel] ARM/AARCH64 work

2020-08-07 Thread Sven Barth via fpc-devel
J. Gareth Moreton schrieb am Fr., 7. Aug. 2020, 01:22: > Okay, got it to compile. I had to make a cfg file with absolute paths > though that I Have to > explicitly reference, since the trunk build puts ppca64 into > /usr/local/fpc/3.3.1 and I'm not sure > where it looks for fpc.cfg normally.

Re: [fpc-devel] ARM/AARCH64 work

2020-08-06 Thread J. Gareth Moreton
Okay, got it to compile. I had to make a cfg file with absolute paths though that I Have to explicitly reference, since the trunk build puts ppca64 into /usr/local/fpc/3.3.1 and I'm not sure where it looks for fpc.cfg normally. Still, despite it being a little bit untidy, I got it to build

Re: [fpc-devel] ARM/AARCH64 work

2020-08-06 Thread J. Gareth Moreton
Aah, bare-bones project failed to compile with the same error, so FPC isn't configured properly. Is there something I need to do with, say, setting up the config file? I'm trying to remember how everything works with Linux. Gareth aka. Kit On Thu 06/08/20 22:38 , "J. Gareth Moreton"

Re: [fpc-devel] ARM/AARCH64 work

2020-08-06 Thread J. Gareth Moreton
Is there a particular DB test project that I can pick from, or is making a bare-bones project with "uses db;" enough? Gareth aka. Kit On Thu 06/08/20 22:46 , "Sven Barth" pascaldra...@googlemail.com sent: > J. Gareth Moreton schrieb am Do., 6. Aug. 2020, 22:36: > Hi guys, can you confirm

Re: [fpc-devel] ARM/AARCH64 work

2020-08-06 Thread Sven Barth via fpc-devel
J. Gareth Moreton schrieb am Do., 6. Aug. 2020, 22:36: > Hi guys, can you confirm that Lazarus compiles on aarch64? When I try > under aarch64-linux (with > fresh SVN checkouts), it fails with the error message: > > Fatal: (10022) Can't find unit db used by fcllaz > Can you compile a simple

Re: [fpc-devel] ARM/AARCH64 work

2020-08-06 Thread J. Gareth Moreton
Hi guys, can you confirm that Lazarus compiles on aarch64? When I try under aarch64-linux (with fresh SVN checkouts), it fails with the error message: Fatal: (10022) Can't find unit db used by fcllaz Last time this was mentioned, it was due to an oversight on my part when it comes to case

Re: [fpc-devel] ARM/AARCH64 work

2020-08-06 Thread Marc Weustink via fpc-devel
On 6-8-2020 11:16, Sven Barth via fpc-devel wrote: Marc Weustink via fpc-devel > schrieb am Do., 6. Aug. 2020, 09:13: ... Do you mind sharing where you found a working network driver ? I've read endless stories of instabilities with a

Re: [fpc-devel] ARM/AARCH64 work

2020-08-06 Thread Sven Barth via fpc-devel
Marc Weustink via fpc-devel schrieb am Do., 6. Aug. 2020, 09:13: > > > On 5-8-2020 23:44, Sven Barth via fpc-devel wrote: > > Am 05.08.2020 um 18:33 schrieb J. Gareth Moreton: > >> P.S. While I haven't been asked to improve aarch64-linux specifically, > >> if I'm understanding things > >>

Re: [fpc-devel] ARM/AARCH64 work

2020-08-06 Thread Marc Weustink via fpc-devel
On 5-8-2020 23:44, Sven Barth via fpc-devel wrote: Am 05.08.2020 um 18:33 schrieb J. Gareth Moreton: P.S. While I haven't been asked to improve aarch64-linux specifically, if I'm understanding things correctly, there should be very few differences with the actual target platform in regards

Re: [fpc-devel] ARM/AARCH64 work

2020-08-05 Thread Florian Klämpfl
> Am 05.08.2020 um 19:47 schrieb J. Gareth Moreton : > > Hi everyone, > > So I have been asked to do some work in improving optimisation for AARCH64, > and ARM by logical > extension since some parts are shared. I've had a look around the code for > the Peephole Optimizer > for these

Re: [fpc-devel] ARM/AARCH64 work

2020-08-05 Thread Sven Barth via fpc-devel
Am 05.08.2020 um 22:44 schrieb J. Gareth Moreton: I can't promise anything just yet, but I'll see what I can do. At the moment I'm still learning to configure anything. I've had apps crash from out of memory errors and the CPU get throttled due to overheating while trying to play a YouTube

Re: [fpc-devel] ARM/AARCH64 work

2020-08-05 Thread J. Gareth Moreton
I can't promise anything just yet, but I'll see what I can do. At the moment I'm still learning to configure anything. I've had apps crash from out of memory errors and the CPU get throttled due to overheating while trying to play a YouTube video. I've got some things sorted by increasing

Re: [fpc-devel] ARM/AARCH64 work

2020-08-05 Thread Sven Barth via fpc-devel
Am 05.08.2020 um 18:33 schrieb J. Gareth Moreton: P.S. While I haven't been asked to improve aarch64-linux specifically, if I'm understanding things correctly, there should be very few differences with the actual target platform in regards to calling conventions, for example. Correct, the most