[fpc-devel] LEA instruction speed

J. Gareth Moreton gareth at moreton-family.com
Mon Oct 9 19:01:34 CEST 2023


Thank you very much!  That processor is built on the Excavator 
architecture and lines up with the flag I put in the merge request (i.e. 
it has the "fast LEA" hint).

I honestly didn't expect this much testing feedback, so thank you all!

Gareth aka. Kit

P.S. I'm tempted to extend the test slightly to actually name the CPU 
automatically.

On 09/10/2023 15:40, Jean SUZINEAU via fpc-devel wrote:
> My results:
> jean at First-Boss:~/temp$ cat /proc/cpuinfo | grep "model name"
> model name    : AMD A6-7480 Radeon R5, 8 Compute Cores 2C+6G
> jean at First-Boss:~/temp$ /usr/bin/fpc blea.pp
> Free Pascal Compiler version 3.2.2 [2021/07/09] for x86_64
> Copyright (c) 1993-2021 by Florian Klaempfl and others
> Target OS: Linux for x86-64
> Compiling blea.pp
> Linking blea
> 95 lines compiled, 0.2 sec
> jean at First-Boss:~/temp$ ./blea
>    Pascal control case: 5.1 ns/call
>  Using LEA instruction: 0.5 ns/call
> Using ADD instructions: 0.8 ns/call
> jean at First-Boss:~/temp$
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>


More information about the fpc-devel mailing list