George Bakhtadze <[email protected]> schrieb am Fr., 28. Juni 2019,
08:26:

> Hello,
>
> > One thing I have been considering is to promote fields and global
> variables to local registers to reduce memory accesses.
>
> That would be great. But multithreaded code which assume (incorrectly)
> that those fields and globals are in memory may be broken.
>

This assumption is *not* incorrect. Only on the LLVM based Delphi NewGen
and FPC's LLVM backend the assumption is incorrect which can be seen by
them having added "volatile" mechanisms.

Regards,
Sven
_______________________________________________
fpc-devel maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to