Not sure if this has been discussed previously, but it's worth a mention if not. This is not MSP430 specific (although the referenced paper does mention the GCC port to the MSP430), but applies to anybody using C or C++ for development. A colleague showed me an item in the February 2009 issue of Embedded Systems Design magazine written by Jack Ganssle that is both interesting and scary. In a nutshell, compilers sometimes miscompile code using "volatile" qualifiers. See:
http://preview.tinyurl.com/cb3sk2 It references a paper that discusses the problem in detail. URL here for convenience: http://preview.tinyurl.com/6pmr42 It would be interesting to hear the viewpoints on this of the compiler vendors who follow this group. John
