Flash footprint of lvgl is high ! How to reduce it?

Good tip.

I have a couple of questions:

  1. Does this compiler optimization and size reduction has some penalties, such as speed reduction?
  2. How can I perform this in the STM32 CubeIDE? Is it here? (image below)