- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
On compiling the Test Console App I get the following message:
Making test_console-TWRK60D100M.elf
c:/users/016424/documents/wiced/wiced-sdk-2.4.0/wiced-sdk/tools/arm_gnu/bin/win32/arm-none-eabi-ld.exe: build/test_console-TWRK60D100M/Binary/test_console-TWRK60D100M.elf section `.text' will not fit in region `APP_CODE'
c:/users/016424/documents/wiced/wiced-sdk-2.4.0/wiced-sdk/tools/arm_gnu/bin/win32/arm-none-eabi-ld.exe: region `APP_CODE' overflowed by 22448 bytes
What is the procedure within the WICED SDK for compiler optimization to optimize the code for size? (to create more compact code?)
Thanks!
Peter
Solved! Go to Solution.
- Tags:
- code size
- gcc options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Peter,
If you don't need iperf, you can remove it by modifying console.mk.
It will reduce the code size much.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Peter,
It's already optimized by -O3.
Please see build//test_console-TWRK60D100M/config.mk
You can modify wiced_toolchain_ARM_GNU.mk for -Os.
But I'm not sure over 22KB can be shrunk.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
dmiya
Thanks for your insight on this!
That -Os compiler optimization setting reduced the 22KB overflow down to a 6KB overflow but as you anticipated this not enough to get the code to fit within the MCU's 512KB of flash.
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Peter,
If you don't need iperf, you can remove it by modifying console.mk.
It will reduce the code size much.
Regards,