Zephyr use lot of memory for unused fonction

Hello

I've noticed that Zephyr uses a lot of memory with all its libraries. My code only takes up 15%, but I'm already out of available space. I've been trying to play with flags to reduce flash size.  Many of Zephyr's embedded functions aren't used in my project. I thought the compiler would remove unused functions. Am I missing something here? Are there any strategies to optimize Zephyr's memory usage for my specific application?

Thanks 


Related