FAQ: Why does my code stop working when I enable optimization?

Document created by LindaJ on Jul 23, 2009
Version 1Show Document
  • View in full screen mode


Why does my application stop working when I enable optimization?




When VisualDSP++ users enable the compiler optimizer, their application may stop working, making it seem like the optimizer is broken, especially if the code has worked on other platforms and with other compilers. However, there are several subtle programming errors that often only become apparent when the optimizer is enabled.


The attached document discusses these errors and details how to fix them.

1 person found this helpful