Wiced debug vs. release and optimization

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello,

We have code that only works when -debug is specified in the build string.  After some reading, I found that -debug disables optimization.  Is there a way I can disable optimization in the build string explicitly?  I would like to verify this is the cause of strange behavior in code (delayed UART responses after performing a DMA ADC reading).

Thanks,

Ben

0 Likes
2 Replies
Anonymous
Not applicable

Furthermore, if I choose FreeRtos instead of ThreadX the problem completely goes away.

0 Likes

Hi,

Yes it is true that the "-debug" option on "Make Target" disables the optimization so that the code could be debugged. The "-debug" disables the optimization in the build string.

For detailed optimization setting could be found in ../tools/makefiles/wiced_toolchain_ARM_GNU.mk.

The COMPILER_SPECIFIC_UNOPTIMIZED_CFLAGS and COMPILER_SPECIFIC_OPTIMIZED_CFLAGS sets the optimization off and optimization on respectively.

BR,

Seyhan