[fpc-devel] LEA instruction speed
Jean SUZINEAU
jean.suzineau at wanadoo.fr
Mon Oct 9 21:23:14 CEST 2023
My results on Windows :
E:\temp>C:\lazarus\fpc\3.2.2\bin\x86_64-win64\fpc.exe -MObjFPC -Scghi
-O1 -g -gl -l -vewnhibq -Fu. -FUlib\x86_64-win64 -FE. -oblea.exe blea.pp
Hint: (11030) Start of reading config file
C:\lazarus\fpc\3.2.2\bin\x86_64-win64\fpc.cfg
Hint: (11031) End of reading config file
C:\lazarus\fpc\3.2.2\bin\x86_64-win64\fpc.cfg
Free Pascal Compiler version 3.2.2 [2022/09/24] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
(1002) Target OS: Win64 for x64
(3104) Compiling blea.pp
(9015) Linking .\blea.exe
(1008) 150 lines compiled, 0.2 sec, 87840 bytes code, 5364 bytes data
(1022) 2 hint(s) issued
E:\temp>blea
CPU = Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
---------------------------------------------
Pascal control case: 1.9 ns/call
Using LEA instruction: 1.2 ns/call
Using ADD instructions: 0.9 ns/call
E:\temp>
More information about the fpc-devel
mailing list