I have a problem with the MS C compiler reordering certain statements, critical in a multithreading context, at high levels of optimization. I want to know how to force ord
I would use the volatile keyword. It will prevent the compiler from re-ordering the instructions.
http://www.barrgroup.com/Embedded-Systems/How-To/C-Volatile-Keyword