2025-01-12 09:52 PM - last edited on 2025-01-13 01:51 AM by Andrew Neil
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
2025-01-13 01:53 AM
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 ?
2025-01-13 05:07 AM - edited 2025-01-13 05:12 AM
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.