Thought Leadership

Video blog: volatile keyword in embedded software

By Colin Walls

My latest video blog is now available. I am talking about the volatile keyword in C/C++, which is of vital importance to embedded developers. You can see the video here or here:

Future video blogs will continue to look at topics of interest to embedded software developers. Suggestions for topics are always welcome via comment, email or social networking.

Comments

0 thoughts about “Video blog: volatile keyword in embedded software
  • Good summary. I also always refer our developers here to John Regehr’s definitive paper “Volatiles are mis-compiled, and what to do about it” which cover the dangers of optimizers that (erroneously) remove reads and writes that are required for volatile objects. His analysis showed almost all compilers were defective, so you have to be rather careful to make sure that volatiles are compiled correctly.

Leave a Reply

This article first appeared on the Siemens Digital Industries Software blog at https://blogs.sw.siemens.com/embedded-software/2016/07/25/video-blog-volatile-keyword-in-embedded-software/