How does one insert a compiler level memory barrier using IAR embedded workbench for ARM?
The equivalent in GCC would be asm volatile ("" : : : "memory")
The words barrier and fence are absent from the User Guide.
How does one insert a compiler level memory barrier using IAR embedded workbench for ARM?
The equivalent in GCC would be asm volatile ("" : : : "memory")
The words barrier and fence are absent from the User Guide.
stdatomicsprovide a standard way - called fences. Otherwise use the intrinsics, Any way you have to carefully select which barrier you need. - too honest for this site