10-18-2022 06:38 PM
Hi,
I have a question about binary size of BSEC2 library.
The document "BSEC Binary Size information.pdf" shows that when Cortex-M0+ platform is used with arm-none-eabi-gcc compiler is needed only 34021 bytes (ROM), but when I compile my project the size is larger.
IDE information: MCUXpresso IDE, compiler arm-none-eabi-gcc, language standard C99, library NewLibNano.
MCU: MKE15Z, Cortex M0+
Flash memory used without BSEC2 library:
Flash memory used with BSEC2 library:
As we can see library size is 57068 bytes in my project, it is larger than the 34021 bytes expected.
Is there something I can do to replicate the expected size?
10-19-2022 04:49 AM
Hi Irepan,
You can add the option of optimizing the code in the compiler to reduce the size. such as -fdata-sections, -O2.