11 Aug
2014
11 Aug
'14
2:53 p.m.
Thanks very much for your help! I've learnt a lot today :-)
On Mon, Aug 11, 2014 at 4:17 PM, Peter Dimov
Lars Hagström wrote:
Does that "memory" statement at the end add a fence both before and after the assembly statement?
Effectively. To be more precise, it turns the assembly statement into a compiler fence. "memory" tells the compiler to assume that the assembly code accesses and modifies memory in unpredictable ways, and the effect of that is basically a compiler fence.
You should probably use the __asm__ and __volatile__ spellings as a matter of style though.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/ mailman/listinfo.cgi/boost