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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to