Let's see Debug and Release in the Desktop case:
In the Desktop World, ‘Debug’ and ‘Release’ builds have following typical meaning:
- Debug builds have debugging and symbolic information included. The compiler is not optimizing to make debugging ‘easier’.
- Release builds have the debugging and symbolic information (Dwarf in ELF/Dwarf files) stripped off. Optimizations are enabled for best performance or code density.
By default, debug and release mode is the same in CW10. in a MQX project, the difference between debug mode and release mode is optimization level setting.
In debug mode: optimization level is 1.
In release mode: optimization level is 4.
You can also refer Erich blog for this topic
http://mcuoneclipse.com/2012/06/01/debug-vs-release/
can this help?
Have a great day,
Zhang Jun
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------