Code Size in Version 1.3.3

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

cross mob
Anonymous
Not applicable

 I just installed and am using version 1.3.3 to fix some USB3 Link error issues (I hope).  However, this caused my code size to go beyond 128K to 142K.  Are there a compile/linker switches that I can use to decrease the size?

   

 

   

Ken

0 Likes
1 Reply
Anonymous
Not applicable

 Hi,

   

To reduce the code size:

   

In Eclipse, go to Project -> Properties -> C/C++ Build -> Settings -> ARM Sourcery Windows GCC C Compiler -> Optimization.

   

Select the Optimization level as "Optimize size (-Os)". This woud reduce the code size by some extent.

   

Further, the release build has less code size than Debug build. You can use the relase build in your final product.

   

Regards,

   

- Madhu Sudhan

0 Likes