[fpc-devel] LEA instruction speed

Tomas Hajny XHajT03 at hajny.biz
Sun Oct 8 22:57:27 CEST 2023


On 2023-10-08 13:45, J. Gareth Moreton via fpc-devel wrote:


> Sorry, ignore last attachment - I forgot to change a line of assembly
> (it was correct for x86_64-win64!!). Here is the corrected version.

Alright, results for this version for AMD A9 9425 under Linux (the same 
trunk compiler as used yesterday):

64-bit version:

    Pascal control case: 5.1 ns/call
  Using LEA instruction: 0.5 ns/call
Using ADD instructions: 0.9 ns/call


32-bit version:

    Pascal control case: 0.9 ns/call
  Using LEA instruction: 0.5 ns/call
Using ADD instructions: 0.9 ns/call

Tomas


More information about the fpc-devel mailing list