Hi Does sombody know a way to disable optimization for part of a code? I have a code that writes data to some HW machine. It has to do it i acertain order. Although I use volatile to write to those adresses th order in which the writes and read are done changes when I enabl optimization in the compiler. Is there a way to solve this without the nee to disable the optimization? I don't want to put this code in seperat function in another file and disable the optimization only for this file.
Thanks