[fpc-devel] Suggestion: reference counted objects
Michael Schnell
mschnell at lumino.de
Thu Sep 25 10:54:40 CEST 2014
On 09/23/2014 11:09 PM, Boian Mitov wrote:
>
>
> Correct you will lose ~3 assembly instructions (Interlocked
> increment/decrement-exchange, and conditional)
With modern x86 archs, interlocked instructions are very expensive in
themselves and can take thousands of clock cycles due to cache
synchronization between all CPUs.
Moreover other archs use completely different (less hardware-driven)
assembler constructs for interlocked operations (e.g. load locked /
store conditional)
-Michael
More information about the fpc-devel
mailing list