32-bit version, 10 runs in a row using a command shell for cycle, LEA before ADD (original version): Pascal control case: 0.9 ns/call Using LEA instruction: 0.0 ns/call Using ADD instructions: 1.6 ns/call Pascal control case: 0.4 ns/call Using LEA instruction: 1.5 ns/call Using ADD instructions: 0.0 ns/call Pascal control case: 0.1 ns/call Using LEA instruction: 1.6 ns/call Using ADD instructions: 1.2 ns/call Pascal control case: 0.2 ns/call Using LEA instruction: 1.8 ns/call Using ADD instructions: 0.0 ns/call Pascal control case: 0.2 ns/call Using LEA instruction: 1.0 ns/call Using ADD instructions: 1.6 ns/call Pascal control case: 0.2 ns/call Using LEA instruction: 1.6 ns/call Using ADD instructions: 0.0 ns/call Pascal control case: 0.2 ns/call Using LEA instruction: 1.8 ns/call Using ADD instructions: 0.0 ns/call Pascal control case: 0.1 ns/call Using LEA instruction: 1.6 ns/call Using ADD instructions: 0.8 ns/call Pascal control case: 1.1 ns/call Using LEA instruction: 0.1 ns/call Using ADD instructions: 1.6 ns/call Pascal control case: 0.2 ns/call Using LEA instruction: 1.5 ns/call Using ADD instructions: 0.0 ns/call 32-bit version, 10 runs in a row using a command shell for cycle, LEA before ADD (original version): Pascal control case: 0.9 ns/call Using LEA instruction: 0.0 ns/call Using ADD instructions: 1.6 ns/call Pascal control case: 0.4 ns/call Using LEA instruction: 1.5 ns/call Using ADD instructions: 0.0 ns/call Pascal control case: 0.1 ns/call Using LEA instruction: 1.6 ns/call Using ADD instructions: 1.2 ns/call Pascal control case: 0.2 ns/call Using LEA instruction: 1.8 ns/call Using ADD instructions: 0.0 ns/call Pascal control case: 0.2 ns/call Using LEA instruction: 1.0 ns/call Using ADD instructions: 1.6 ns/call Pascal control case: 0.2 ns/call Using LEA instruction: 1.6 ns/call Using ADD instructions: 0.0 ns/call Pascal control case: 0.2 ns/call Using LEA instruction: 1.8 ns/call Using ADD instructions: 0.0 ns/call Pascal control case: 0.1 ns/call Using LEA instruction: 1.6 ns/call Using ADD instructions: 0.8 ns/call Pascal control case: 1.1 ns/call Using LEA instruction: 0.1 ns/call Using ADD instructions: 1.6 ns/call Pascal control case: 0.2 ns/call Using LEA instruction: 1.5 ns/call Using ADD instructions: 0.0 ns/call 64-bit version, 10 runs in a row using a command shell for cycle, LEA before ADD (original version): CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 0.6 ns/call Using LEA instruction: 1.7 ns/call Using ADD instructions: 0.0 ns/call CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 0.5 ns/call Using LEA instruction: 1.1 ns/call Using ADD instructions: 1.7 ns/call CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 1.2 ns/call Using LEA instruction: 0.3 ns/call Using ADD instructions: 1.9 ns/call CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 0.9 ns/call Using LEA instruction: 1.8 ns/call Using ADD instructions: 0.0 ns/call CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 0.3 ns/call Using LEA instruction: 1.4 ns/call Using ADD instructions: 1.6 ns/call CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 1.2 ns/call Using LEA instruction: 0.4 ns/call Using ADD instructions: 1.6 ns/call CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 0.2 ns/call Using LEA instruction: 2.0 ns/call Using ADD instructions: 1.1 ns/call CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 1.2 ns/call Using LEA instruction: 0.3 ns/call Using ADD instructions: 1.6 ns/call CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 1.2 ns/call Using LEA instruction: 0.3 ns/call Using ADD instructions: 1.7 ns/call CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 1.0 ns/call Using LEA instruction: 1.4 ns/call Using ADD instructions: 0.4 ns/call 64-bit version, 10 runs in a row using a command shell for cycle, ADD before LEA: CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 0.2 ns/call Using ADD instructions: 1.4 ns/call Using LEA instruction: 1.6 ns/call CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 0.2 ns/call Using ADD instructions: 1.3 ns/call Using LEA instruction: 1.8 ns/call CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 1.2 ns/call Using ADD instructions: 0.0 ns/call Using LEA instruction: 1.6 ns/call CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 1.1 ns/call Using ADD instructions: 0.0 ns/call Using LEA instruction: 1.7 ns/call CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 0.8 ns/call Using ADD instructions: 0.0 ns/call Using LEA instruction: 1.6 ns/call CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 0.7 ns/call Using ADD instructions: 0.0 ns/call Using LEA instruction: 1.7 ns/call CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 0.2 ns/call Using ADD instructions: 1.9 ns/call Using LEA instruction: 0.7 ns/call CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 0.1 ns/call Using ADD instructions: 1.7 ns/call Using LEA instruction: 0.8 ns/call CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 0.1 ns/call Using ADD instructions: 1.5 ns/call Using LEA instruction: 1.6 ns/call CPU = Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz ----------------------------------------------- Pascal control case: 1.2 ns/call Using ADD instructions: 0.2 ns/call Using LEA instruction: 1.4 ns/call