[fpc-devel] LEA instruction speed
Jean SUZINEAU
jean.suzineau at wanadoo.fr
Mon Oct 9 16:40:26 CEST 2023
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$
More information about the fpc-devel
mailing list