This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CCSTUDIO-C2000: Compile and memory barriers

Expert 3860 points

Part Number: CCSTUDIO-C2000

Tool/software: Code Composer Studio

Hi,

I need to implement Compile and Memory barriers for Delfino TMS320F28379D and Code Composer Studio.

  • Compile barrier: Explicit compiler barrier function that prevents the compiler from moving the memory accesses either side of it to the other side. In gcc, this is done using the asm volatile("":::"memory") instruction.
  • Memory barrier: Memory barrier to force strict CPU ordering and as boundary for compiler optimization. This is the same as the compile barrier for gcc, but on some devices are different.

 So the question is how to do that in CCS?