Library file how to store in controller flash memory

Hi Team,

I have converted a Rust file into a library and integrated it into a C project, successfully obtaining the output. However, my static library file is 981 KB, while the STM32F410RBT6 microcontroller has only 128 KB of flash memory. How is it able to store the file? What happens in the background during this process?

This explanation would be very helpful for me.

Thanks & Regards,
Muthu Arasan R

Hello,

This link may be give you some answers