[fpc-pascal] Volatile store usage
denisgolovan
denisgolovan at yandex.ru
Fri Aug 11 18:05:09 CEST 2023
Hi all
I'd like to get some clarification about "volatile" intrinsic.
https://wiki.freepascal.org/FPC_New_Features_Trunk#Support_for_.22volatile.22_intrinsic says just following:
Support for "volatile" intrinsic
Overview: A volatile intrinsic has been added to indicate to the code generator that a particular load from or store to a memory location must not be removed.
... and states that example is here - https://gitlab.com/freepascal.org/fpc/source/-/blob/main/tests/test/tmt1.pp
However I cannot find "store" usage example there.
Only "load".
Are "volatile" stores supported?
I tried following using my rather old 3.3.1 compiler, but none of them compile:
volatile(mem):=0;
mem:=volatile(0);
Any help?
-- Regards,
Denis Golovan
More information about the fpc-pascal
mailing list