cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX code optimization - unused code?

Sagar_Gowda
Associate

Originally a reply here (solved), but split to a separate thread as it is a new question.


Hello,

Is there any  way to disable the code which is auto generated by the Touch GFX  designer which is not used by the application. so I can reduce the space of the code 

Thanks 

2 REPLIES 2

Do you have reason to believe that TouchGFX  designer actually is generating code that is never used by the application?

Examples would help.

With suitable optimisation, the compiler should remove functions that are never called ?

SofLit
ST Employee

I don't think there is a portion of code that will be generated for TouchGFX and it will be not used by the application.

Assume TouchGFX designer generates a code that will not be used by the application it will be for sure discarded by the linker/compiler.

If you are looking to reduce the size of the code, use the compiler optimization or use an external Flash memory (if you have one) to extend the Flash memory size.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
PS: Be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help/support.