Folks,
Have a question on enabling optimizations in our control code.
We do the "usual" stuff in our control code, read ports, perform ADC, perform operations on the input variables and set a few ports to actuate physical actions. A typical embedded control system.
Question is, What is the effect on optimization on the code ? What optimizations are recommended and what are not ?
My irrational worry is that if I enable aggressive optimizations it might optimize away seemingly useless code but which might be very important. Any rules of thumb here ?
We are now constrained only on time, code space is not an issue.
Thanks. -Bhaktha