2021-01-04 10:29 AM
Dear All,
When I compile my TouchGfx project with Assert disabled (NDEBUG symbol defined) strings are keept in binary and use lot of flash space.
Can you have any idea how to disable this to save space ?
Event if assert is defined to # define assert(__e) ((void)0) strings are kept.
Thank you so much for your help.
2021-01-06 02:52 AM
I check and this is part of library libtouchgfx.a that exist only in debug variant, and i ask too WHY?
2021-01-06 05:26 AM
For me strings argument of assert function exist too in release variant.
Event if you use # define assert(__e) ((void)0) strings are kept and passed to assert function (but never used) .
This behavior disclose internal path and consume lot of flash. I can remove all call of assert but it is very time consuming and if I regenerate a project with TouchGfx I lost my modification.
Thank you for your support