Re: [fpc-devel] LEA instruction speed

2023-10-07 Thread J. Gareth Moreton via fpc-devel
I'm still slightly curious, but if full optimisations make better code, then indeed it's probably not worth the effort. Your timings are incredibly helpful - thank you!  If I understand, AMD A9 is the Excavator architecture, which implies that AMD processors don't suffer from the same latency

Re: [fpc-devel] LEA instruction speed

2023-10-07 Thread Tomas Hajny via fpc-devel
On 2023-10-07 18:09, J. Gareth Moreton via fpc-devel wrote: That's interesting; I am interested to see the assembly output for the Pascal control cases.  As for the 64-bit version, that was my fault since the assembly language is for Microsoft's ABI rather than the System V ABI, so it was

Re: [fpc-devel] LEA instruction speed

2023-10-07 Thread J. Gareth Moreton via fpc-devel
That's interesting; I am interested to see the assembly output for the Pascal control cases.  As for the 64-bit version, that was my fault since the assembly language is for Microsoft's ABI rather than the System V ABI, so it was checking a register with an undefined value.  Find attached the

Re: [fpc-devel] LEA instruction speed

2023-10-07 Thread Tomas Hajny via fpc-devel
On 2023-10-07 03:57, J. Gareth Moreton via fpc-devel wrote: Hi Kit, Do you think this should suffice? Originally it ran for 1,000,000 repetitions but I fear that will take way too long on a 486, so I reduced it to 10,000. OK, I tried it now. First of all, after turning on the old machine, I

Re: [fpc-devel] make OPT= OPTFPC= NEWOPT=

2023-10-07 Thread Kostas Michalopoulos via fpc-devel
On 10/6/23 16:11, Marco van de Voort via fpc-devel wrote: OPT= always to my best knowledge NEWOPT is opt only for later cycles and the rest, iow not for the first FPC bootstrap cycle (that might be started with an older compiler version).  So it is for additional options that are not