- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Tags:
- 4343w
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Furthermore, if I choose FreeRtos instead of ThreadX the problem completely goes away.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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